Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing for Android Wear

Jomar Tigcal
December 05, 2015

Developing for Android Wear

Slides of my talk at GDG Philippines HackTime (December 5, 2015)

Jomar Tigcal

December 05, 2015
Tweet

More Decks by Jomar Tigcal

Other Decks in Technology

Transcript

  1. Jomar Tigcal
    GDG Philippines Hacktime 2015
    Developing for Android Wear

    View full-size slide

  2. Jomar Tigcal
    GDG Philippines Community Manager
    Android Developer, Trainer, and Consultant
    Have Android (and Android Wear) apps on Google Play Store
    http://jomar.tigcal.com
    [email protected]
    http://google.com/+JomarTigcal
    @jomartigcal

    View full-size slide

  3. GDG Philippines
    Google Developers Group (GDG) Philippines is a
    group of enthusiastic Filipino developers interested to
    collaborate and learn more about new technologies.
    http://www.gdgph.org

    View full-size slide

  4. GDG Philippines
    [email protected]
    GDG Philippines
    @gdgphilippines
    /GDGPhilippines

    View full-size slide

  5. EXTENDED
    Next Week!

    View full-size slide

  6. Android Wear: Information that moves with you

    View full-size slide

  7. Android Wear at Google I/O 2014

    View full-size slide

  8. Introduction to Android Wear

    View full-size slide

  9. Android Wear
    ● Extends the Android platform to
    wearables.
    ● Information that moves with you
    ● Small, powerful devices, worn on the
    body.

    View full-size slide

  10. Android Wear
    ● Useful information when you need it most.
    ● Intelligent answers to spoken questions.
    ● Tools to help reach fitness goals.
    ● Your key to a multiscreen world.

    View full-size slide

  11. Android Wear App
    Phone/tablet running Android 4.3 and up
    http://g.co/WearCheck
    Download at
    https://play.google.com/store/apps/details?
    id=com.google.android.wearable.app
    Image Source: http://www.phonearena.com/news/Official-Android-Wear-App-now-available-in-Google-Play_id57778

    View full-size slide

  12. Android Wear App
    ● Control voice action preferences
    ● Adjust notification settings
    ● Configure devices
    ● Demo cards
    ● Tutorial
    ● Help & Feedback
    Image Source: http://www.phonearena.com/news/Official-Android-Wear-App-now-available-in-Google-Play_id57778

    View full-size slide

  13. Designing for Android Wear
    http://developer.android.com/design/wear/index.html

    View full-size slide

  14. Suggest: The Context Stream

    View full-size slide

  15. Demand: The Cue Card

    View full-size slide

  16. Creative Vision for Android Wear
    ● Launched automatically
    ● Glanceable

    View full-size slide

  17. Creative Vision for Android Wear
    ● All about Suggest and Demand
    ● Zero or low interaction

    View full-size slide

  18. Design Principles for Android Wear
    ● Focus on not stopping the user and all
    else will follow
    ● Do one thing,
    really fast
    ● Design for the corner of the eye

    View full-size slide

  19. Design Principles for Android Wear
    ● Design for big gestures

    View full-size slide

  20. Design Principles for Android Wear
    ● Think about stream cards first
    ● Don’t be a constant shoulder tapper

    View full-size slide

  21. Developing for Android Wear
    developer.android.com/wear

    View full-size slide

  22. Notifications
    No work required!

    View full-size slide

  23. Enhanced Notifications
    Custom Actions
    Wearable-only Actions

    View full-size slide

  24. Android Wear Apps
    Apps that run directly on the wearable

    View full-size slide

  25. Watch Faces
    Custom Watch Faces
    Interactive Watch Faces

    View full-size slide

  26. Prerequisites
    ● Android Studio 0.8+
    ● Android Wear companion App (Android 4.3+)
    ● An Android Wear device or Android Wear AVD

    View full-size slide

  27. Update from SDK Manager
    ● Android 4.4W (API 20) or higher > SDK Platform
    ● Android 4.4W (API 20) or higher > Android Wear ARM System Image
    ● Android 4.4W (API 20) or higher > Android Wear Intel System Image
    ● Android SDK Tools 23.0.0 or higher
    ● Android SDK Platform-tools 23.0.0 or higher
    ● Android SDK Build-tools 23.0.0 or higher
    ● Android Support Library
    ● Google Play Services

    View full-size slide

  28. Create Android Wear Virtual Device
    ● Open AVD Manager
    ● Click Create Virtual Device...
    ● Select Wear in the Category and choose
    between Square, Round Chin, and Round.
    Click the Next button.
    ● Select the release name (e.g. Lollipop)
    then click the Next button.
    ● Rename the virtual device (if you like) and
    change any configuration based on your
    preference. Click the Finish button.

    View full-size slide

  29. Pair handheld with Android Wear Virtual Device
    ● Connect the tablet/phone to the computer (via USB)
    ● Forward the tablet/phone’s communication port to the Android Wear Virtual
    Device:
    adb -d forward tcp:5601 tcp:5601
    ● Open the Android Wear companion app
    ● Connect the phone/tablet to the emulator

    View full-size slide

  30. Create an Android Studio Project
    ● Create a New Project
    ● Fill up the name and package name
    ● Select Phone and Tablet
    ● Select Wear and select API 20: Android
    4.4 (KitKat Wear) for minimum SDK
    ● Add Blank Activity for Mobile
    ● Add Blank Wear Activity for Wear

    View full-size slide

  31. Unofficial Wearable UI Library
    compile 'com.google.android.support:wearable:+'

    View full-size slide

  32. Learn More
    Android Wear Development: Extend your Apps to Android Smartwatches Udacity
    Course: https://www.udacity.com/course/ud875A
    Android Wear Documentation: http://developer.android.com/wear
    Android Wear Developers Google+ Community: http://g.co/androidweardev
    Android Wear Design Guidelines: http://developer.android.com/design/wear
    Android Wear Videos: http://androidwear-playlist.tigcal.com

    View full-size slide

  33. Demo & Hands-on
    androidwear-codelab.tigcal.com

    View full-size slide

  34. Questions?
    Image Source: http://www.talkandroid.com/35960-google-test-market-accidentally-released-reviewed-quickly-pulled/

    View full-size slide

  35. Thank you!
    Build something awesome!
    Submit your projects for GDG HackFair Philippines
    Provide feedback: talkback.tigcal.com

    View full-size slide

  36. Jomar Tigcal
    GDG Philippines Hacktime 2015
    Developing for Android Wear

    View full-size slide