From 93862ec3086bf90ca2dd2a18212c4d74185b438a Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Tue, 5 Apr 2016 15:36:37 -0700 Subject: [PATCH] docs: Added section describing Launcher Shortcuts. The "Android N for Developers" page within the Android N preview documentation now includes a section discussing the features and workflow associated with Launcher Shortcuts. Bug: 27753707 Change-Id: I43c17960f08a3c2a9e123ca5b5c411381afdfab8 --- docs/html/preview/api-overview.jd | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd index 478f068670c22..c2421ebe1b34f 100644 --- a/docs/html/preview/api-overview.jd +++ b/docs/html/preview/api-overview.jd @@ -34,6 +34,7 @@ page.image=images/cards/card-n-apis_2x.png
  • Default Trusted CA
  • APK signature scheme v2
  • Scoped directory access
  • +
  • Launcher shortcuts
  • @@ -696,8 +697,57 @@ requesting access to.

    Scoped Directory Access developer documentation.

    +

    + Launcher shortcuts +

    +

    + 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. +