~/talk

App Shortcuts

Talkat 360|AnDev 2017 · 2017-07-13..07-14· [android]
links:none on file
slides:none on file

Android 7.1 adds app shortcuts that are defined either in XML or at runtime and require a real intent or the app crashes; static shortcuts live in resources while static and dynamic shortcuts differ by mutability. Runtime shortcuts use ShortcutManager with addDynamicShortcuts removeAllDynamicShortcuts reportShortcutUsed and a background update limit; back stack requires multiple intents and FLAG_ACTIVITY_CLEAR_TASK to avoid surprising exits. Pinning uses requestPinShortcut and can place one‑tap icons on the homescreen.

AI-written summary · about

  1. 0:00Intro
  2. 0:27What are app shortcuts? • "Bookmarks" for apps
  3. 1:02Motivations and Overview Easy way to bring user into a specific part of the app • Simplifies user's interaction and improves experience
  4. 3:37Creating Shortcuts
  5. 4:06Static and Dynamic Shortcuts • Static: Defined in a resource file created at compile time
  6. 7:09The power of dynamic shortcuts
  7. 7:30Changing Shortcuts - Simple Example
  8. 11:11Updating dynamic shortcuts • Dynamic shortcuts can be updated at any time!
  9. 11:51Backup and Restoration of shortcuts • Dynamic shortcuts aren't saved after a backup/restore • Utilize getDynamicShortcuts() when your app launches to rebuild dynamic shortcuts as needed
  10. 15:24Pinning Shortcuts • Users have the ability to pin shortcuts
  11. 16:30Pinning Shortcuts (Updated)
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.