$30 off During Our Annual Pro Sale. View Details »

Android Things

Android Things

An intro to Android Things - https://developer.android.com/things

Scott Alexander-Bown

March 20, 2017
Tweet

More Decks by Scott Alexander-Bown

Other Decks in Technology

Transcript

  1. Scott Alexander-Bown
    Freelance Android Developer
    @scottyab
    March 2017

    View Slide

  2. @scottyab

    View Slide

  3. Developer Preview!!
    @scottyab

    View Slide

  4. Cameras
    Gateways
    HVAC Control
    Smart Meters
    Point of Sale
    Inventory Control
    Interactive Ads
    Vending Machines
    Security Systems
    Smart Doorbells
    Routers
    Energy Monitors
    Asset Tracking
    Fleet Management
    Driver Assist
    Predictive Service
    Ideal for powerful, intelligent devices on the edge
    that need to be secure.
    @scottyab

    View Slide

  5. Android SDK Android Studio Play Services Firebase Cloud Platform
    @scottyab

    View Slide

  6. IoT Developer
    Console
    Automatic
    Security Updates
    Signed Images Verified Boot
    @scottyab

    View Slide

  7. SoM
    Architecture
    Google Managed
    BSP
    @scottyab

    View Slide

  8. Android Things for Developers
    @scottyab

    View Slide

  9. View Slide

  10. View Slide

  11. Displays are Optional
    Consider Alternate UI
    @scottyab

    View Slide

  12. dependencies {
    provided 'com.google.android.things:androidthings:...'
    }



    ...








    Home Activity
    @scottyab

    View Slide

  13. private GpioCallback callback = new GpioCallback() {
    @Override
    public boolean onGpioEdge(Gpio gpio) {
    int keyAction = gpio.getValue() ?
    KeyEvent.ACTION_DOWN : KeyEvent.ACTION_UP;
    inputDriver.emit(new KeyEvent[]{
    new KeyEvent(keyAction, KeyEvent.KEYCODE_SPACE)});
    return true;
    }
    };
    Button User Driver (inside your Activity class)
    InputDriver inputDriver = InputDriver.builder(InputDevice.SOURCE_CLASS_BUTTON)
    .setName(DRIVER_NAME)
    .setVersion(DRIVER_VERSION)
    .setKeys(new int[]{KeyEvent.KEYCODE_SPACE})
    .build();
    UserDriverManager.getManager().registerInputDriver(inputDriver);

    View Slide

  14. Get Started today!
    @scottyab

    View Slide

  15. ● Download the latest preview image
    ● writing the image to SD card
    ● Insert the flashed microSD card into your
    board.
    ● Connect power, ethernet and HDMI
    ● Connect via adb (IP shown on screen)
    $ adb connect
    connected to :5555
    Setting up your Raspberry Pi 3
    @scottyab

    View Slide

  16. ● Smart doorbell with camera
    ● Weather station
    ● Distributed Piano (by @riggaroo)
    ● Electricity monitor (by @riggaroo)
    Example projects
    @scottyab

    View Slide

  17. ● Dev preview
    ● No one is using live i.e distribution untested
    ● Weave not available yet
    ● Significant hardware requirements
    CONS
    @scottyab

    View Slide

  18. The Power of
    Android
    Automatic and
    Secure
    Managed by
    Google
    @scottyab

    View Slide

  19. Google's IoT Developers Community
    https://g.co/iotdev
    Google's IoT Solutions
    https://iot.google.com
    Android Things SDK
    https://developer.android.com/things
    Scott Alexander-Bown
    Freelance Android Developer
    @scottyab

    View Slide