app-shortcut

Launch Fragment (instead of Activity) from Android 7.1 App Shortcut

痞子三分冷 提交于 2019-12-22 04:13:08
问题 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"

Launch Fragment (instead of Activity) from Android 7.1 App Shortcut

家住魔仙堡 提交于 2019-12-22 04:13:03
问题 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"

App isn´t installed error when tapping app shortcut in Nougat 7.1.1

笑着哭i 提交于 2019-12-09 18:20:57
问题 I´m having some issues when adding an static app shortcut to an existing app. I followed the steps from https://developer.android.com/guide/topics/ui/shortcuts.html and the shortcut shows up, but when I tap it it doesn't launches the activity, instead it shows a toast message saying: " App isn´t installed ". Here is the relevant section of the manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mypackage"> <application android:allowBackup="true" android

Launch Fragment (instead of Activity) from Android 7.1 App Shortcut

邮差的信 提交于 2019-12-05 03:53:43
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" android:shortcutLongLabel="@string/long_label" android:shortcutDisabledMessage="@string/disabled

App isn´t installed error when tapping app shortcut in Nougat 7.1.1

若如初见. 提交于 2019-12-04 07:28:30
I´m having some issues when adding an static app shortcut to an existing app. I followed the steps from https://developer.android.com/guide/topics/ui/shortcuts.html and the shortcut shows up, but when I tap it it doesn't launches the activity, instead it shows a toast message saying: " App isn´t installed ". Here is the relevant section of the manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mypackage"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="