Builder(this, "id1") Short Label("Web site") Long Label("Open the web site") Icon(Icon.create With Resource(context, R.drawable.icon_website)) Intent(new Intent(Intent.ACTION_VIEW, Uri.parse("https:// .build(); shortcut Dynamic Shortcuts(List(shortcut)); On Android 8.0 (API level 26) and higher, you can create pinned shortcuts.Each shortcut references one or more intents, each of which launches a specific action in your app when users select the shortcut.Examples of actions you can express as shortcuts include the following: You can publish up to five shortcuts (static shortcuts and dynamic shortcuts combined) at a time for your app.
If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Figure 3 shows an example of this type of activity in the Gmail app.
In your app's manifest file, add To determine the situations during which static and dynamic shortcuts should appear, the launcher examines the activation history of shortcuts.
These shortcuts can be displayed in a supported launcher.
Shortcuts let your users quickly start common or recommended tasks within your app.
Good candidates for dynamic shortcuts include calling a specific person, navigating to a specific location, and viewing the current score for a specific game.