android-appshortcut

Android Shortcuts - App isn't installed error even though targetPackage and targetClass are correct

坚强是说给别人听的谎言 提交于 2020-01-04 04:00:07
问题 I tried implementing the Android Shortcuts when holding the icons in the home screen. But when I try to launch them I get an "App isn't installed" Toast This is my shortcuts.xml : <shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut android:icon="@drawable/plus_black" android:shortcutId="add_sub" android:shortcutLongLabel="@string/shortcut_add_sub_long" android:shortcutShortLabel="@string/shortcut_add_sub"> <intent android:action="android.intent.action.VIEW"

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

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="

How to get available “app shortcuts” of a specific app?

≡放荡痞女 提交于 2019-12-03 09:29:01
问题 Background Starting from API 25 of Android, apps can offer extra shortcuts in the launcher, by long clicking on them: The problem Thing is, all I've found is how your app can offer those shortcuts to the launcher, but I can't find out how the launcher gets the list of them. Since it's a rather new API, and most users and developers don't even use it, I can't find much information about it, especially because I want to search of the "other side" of the API usage. What I've tried I tried

How to get available “app shortcuts” of a specific app?

自闭症网瘾萝莉.ら 提交于 2019-12-03 01:11:51
Background Starting from API 25 of Android, apps can offer extra shortcuts in the launcher, by long clicking on them: The problem Thing is, all I've found is how your app can offer those shortcuts to the launcher, but I can't find out how the launcher gets the list of them. Since it's a rather new API, and most users and developers don't even use it, I can't find much information about it, especially because I want to search of the "other side" of the API usage. What I've tried I tried reading the docs ( here , for example). I don't see it being mentioned. Only the part of other apps is

How to create dynamic app shortcut using ShortcutManager API for android 7.1 app?

别等时光非礼了梦想. 提交于 2019-11-29 14:10:27
问题 In Android 7.1, developer can able to create AppShortCut. We can create shortcut in two way: Static shortcuts using resources(XML) file. Dynamic shortcuts using ShortcutManager API. So How to create a shortcut using ShortcutManager dynamically? 回答1: Using ShortcutManager , we can create app dynamic app shortcut in following way: ShortcutManager shortcutManager; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { shortcutManager = getSystemService(ShortcutManager.class)