App Shortcuts
summary
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
chapters (11)
- 0:00Intro
- 0:27What are app shortcuts? • "Bookmarks" for apps
- 1:02Motivations and Overview Easy way to bring user into a specific part of the app • Simplifies user's interaction and improves experience
- 3:37Creating Shortcuts
- 4:06Static and Dynamic Shortcuts • Static: Defined in a resource file created at compile time
- 7:09The power of dynamic shortcuts
- 7:30Changing Shortcuts - Simple Example
- 11:11Updating dynamic shortcuts • Dynamic shortcuts can be updated at any time!
- 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
- 15:24Pinning Shortcuts • Users have the ability to pin shortcuts
- 16:30Pinning Shortcuts (Updated)








