From 2c993cbbfa43d2987155a2cbcc7b578cec064a68 Mon Sep 17 00:00:00 2001
From: Kevin Hufnagle
- Android N allows apps to define action-specific shortcuts which can be - displayed in the launcher. These launcher shortcuts let your users - quickly start common or recommended tasks within your app. Each shortcut - contains an intent, which links the - shortcut to a specific action in your app. Examples of these actions include: -
- -- Your app can create up to five dynamic shortcuts. When users perform - a gesture over your app's launcher icon, these shortcuts appear. By dragging - the shortcuts onto the launcher, users can make persistent copies of the - shortcuts, called pinned shortcuts. Users can create an unlimited - number of pinned shortcuts for each app. -
- -- Note: Although other apps can't access your shortcut data, - the launcher does have access to this data. Therefore, the - shortcuts you create should conceal sensitive user information. -
- -- You can use this command to view your app's shortcuts: -
- --$ adb shell dumpsys shortcut -- -
- To update all shortcuts and to delete dynamic shortcuts, use the appropriate
- methods that the Launcher Shortcut API provides. For more details about this
- API, see android.content.pm.ShortcutManager in the downloadable
- API Reference.
-