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 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 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 Slide

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

    View Slide

  5. EXTENDED
    Next Week!

    View Slide

  6. Android Wear: Information that moves with you

    View Slide

  7. Android Wear at Google I/O 2014

    View Slide

  8. Introduction to Android Wear

    View Slide

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

    View 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 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 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 Slide

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

    View Slide

  14. Suggest: The Context Stream

    View Slide

  15. Demand: The Cue Card

    View Slide

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

    View Slide

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

    View 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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

  22. Notifications
    No work required!

    View Slide

  23. Enhanced Notifications
    Custom Actions
    Wearable-only Actions

    View Slide

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

    View Slide

  25. Watch Faces
    Custom Watch Faces
    Interactive Watch Faces

    View Slide

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

    View 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 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 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 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 Slide

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

    View 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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide