Launch Fragment (instead of Activity) from Android 7.1 App Shortcut
问题 I have decided to look at adding static shortcuts into an application, using this page as reference: https://developer.android.com/preview/shortcuts.html The XML for my shortcuts currently looks like so: <?xml version="1.0" encoding="utf-8"?> <shortcuts xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut android:shortcutId="id" android:enabled="true" android:icon="@drawable/icon" android:shortcutShortLabel="@string/short_label"