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

Android Wear Development

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Android Wear Development

This presentation covers main concepts of Android Wear development, useful tricks, Wear performance optimisations for battery, main UI elements for Wear and how they are different from common Android UI widgets.
https://youtu.be/rr9srGCVenk

Avatar for Sergii Kozyrev

Sergii Kozyrev

March 01, 2016
Tweet

More Decks by Sergii Kozyrev

Other Decks in Programming

Transcript

  1. Environment • Enable developer mode • Wear app goes inside

    apk for release (wear task) • for debug - separate • same version code, same permissions
  2. Apps • Same well known Android • Components should live

    as little as possible • 5 sec inactivity, but not in onPause (due to incoming notification) • Always keep in mind how small battery is
  3. Ambiactive support • wake-lock - BAD, Always on - GOOD

    (WearableActivity - setAmbientEnabled()) • EXTRA_BURN_IN_PROTECTION and EXTRA_LOWBIT_AMBIENT from onEnterAmbient(Bundle) bundle in WearableActivity
  4. WatchFaces • Interactive (Full colors) • Ambiactive (disable background, avoid

    solid regions, 95% should be black) • out of box screen burning protection • Maintain timer in interactive mode and use auto-tick once per minute in ambient • draw it straight on canvas :)