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

When your app is asleep (Droidcon UA & Droidcon...

Britt Barak
October 27, 2017

When your app is asleep (Droidcon UA & Droidcon UK 2017)

Features we can use to improve ux, when the users aren't engaging with the app.

Also here: https://goo.gl/qLyc8G

Britt Barak

October 27, 2017
Tweet

More Decks by Britt Barak

Other Decks in Technology

Transcript

  1. Background Color (26+) "ongoing tasks which are critical for a

    user to see at a glance" builder.setColor()
  2. The Power To The Users! • Sound • Lights •

    Vibration • Importance • Show on lockscreen • Override do not disturb
  3. Foreground 108 dp = 72 + 18 + 18 dp

    Can have transparency
  4. shortcuts.xml <shortcut android:shortcutId="..." android:icon="..." android:shortcutShortLabel="..."> <intent ... /> <!-- more

    intents... --> <categories android:name="android.shortcut.conversation" /> </shortcut> Static Shortcuts
  5. Pinned Shortcuts if (shortcutManager.isRequestPinShortcutSupported()) { Intent pinIntent = shortcutManager.createShortcutResultIntent(shortcutInfo); PendingIntent

    onPinnedIntent = PendingIntent.getBroadcast(context, 0, pinIntent, 0); shortcutManager. requestPinShortcut(shortcutInfo, onPinnedIntent.getIntentSender()); }
  6. @Override public void onStartListening() { Tile tile = getQsTile(); //...

    tile.setState(Tile.STATE_ACTIVE); tile.updateTile(); } MyTileService.java
  7. Users must love u on the background... - Be relevant

    - Notifications styles - Be useful - Notification actions & reply - Be focused - Channels - Notif. badge - Be pretty - Adaptive icons - Be quick - Shortcuts - Quick settings tile