Merge "Merge from oc-preview-docs-release: docs: Added note that INSTALL_SHORTCUT is implicit broadcast as of O." into oc-dev
am: a96e533840
Change-Id: Iefd97a3d8b1377dd72f3a3428c539cb029b4e0a9
This commit is contained in:
@@ -1984,6 +1984,11 @@
|
|||||||
<eat-comment />
|
<eat-comment />
|
||||||
|
|
||||||
<!-- Allows an application to install a shortcut in Launcher.
|
<!-- Allows an application to install a shortcut in Launcher.
|
||||||
|
<p>In Android O (API level 26) and higher, the <code>INSTALL_SHORTCUT</code> broadcast no
|
||||||
|
longer has any effect on your app because it's a private, implicit
|
||||||
|
broadcast. Instead, you should create an app shortcut by using the
|
||||||
|
{@link android.content.pm.ShortcutManager#requestPinShortcut requestPinShortcut()}
|
||||||
|
method from the {@link android.content.pm.ShortcutManager} class.
|
||||||
<p>Protection level: normal
|
<p>Protection level: normal
|
||||||
-->
|
-->
|
||||||
<permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
|
<permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
|
||||||
|
|||||||
Reference in New Issue
Block a user