Questions tagged [android-appshortcut]

32 questions
13
votes
2 answers

How to get available "app shortcuts" of a specific app?

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…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
10
votes
0 answers

Check if app launcher has menu key/swipe up for app drawer OR apps on home by default

I was trying to create app shortcut at home. I did that quite well for most devices. with this private void setShortcutIcon() { if (ShortcutManagerCompat.isRequestPinShortcutSupported(this)) { if (Build.VERSION.SDK_INT >=…
10
votes
4 answers

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

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,…
10
votes
5 answers

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

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?
pRaNaY
  • 24,642
  • 24
  • 96
  • 146
9
votes
1 answer

Android App Static Shortcut with Navigation Library

My app has one static shortcut, and I'm using the navigation architecture component. I'm using the following implementation but it does not work on Android 9. In my MainActivity: override fun onCreate(savedInstanceState: Bundle?) { …
5
votes
2 answers

How to launch existing instance of an activity from static shortcut

I have an Activity(MainActivity) in my application and have one static shortcut(pointed to TempActivity). As the static shortcuts will always have FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_CLEAR_TASK set, I've created TempActivity which is an…
Sankar
  • 1,685
  • 2
  • 16
  • 27
5
votes
1 answer

Can Android 7.1 static app-shortcuts creator put extras into the intent?

This is a short question: Android Nougat 7.1 has a new feature for launchers, to create app-shortcuts by showing a menu to choose from…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
4
votes
3 answers

Opening a fragment via quick app shortcut

Hello, I do know that this is a duplicate question, but i was not able to find the solution from the other threads. Here is my problem, I have an app with bottom navigation bar with…
random1132
  • 91
  • 1
  • 6
3
votes
1 answer

Android app icon shorcut not launching activity

I'm trying to implement app icon shortcut on Android. I followed the documentation but I'm having problem launching the app from the shortcut. Every time I click the app icon shortcut, nothing happens. Here's the code on my AndroidManifest.xml…
mgcaguioa
  • 1,443
  • 16
  • 19
3
votes
1 answer

Flutter Quick Actions change selected Bottom Navigation Bar item

I'm trying to implement home screen quick actions / app shortcuts in my Flutter app. What I'm trying to achieve is when the user launches my app via a quick action, the app changes the selected tab inside the bottom navigation bar. Any help is…
3
votes
1 answer

App Shortcuts: Lint warning with minSdk<25

I understand that those new attributes are safely ignored in older APIs. Now is there any way to make this following Lint warning go away without suppressing it or raising the minSdk? Attribute shortcutId is only used in API level 25 and higher…
PIXP
  • 2,382
  • 3
  • 19
  • 28
3
votes
1 answer

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

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:
Daniele
  • 4,163
  • 7
  • 44
  • 95
2
votes
1 answer

Get AppShortcuts provided by an app

If I know an apps package name, how can I get a list of all available app shortcuts? I can get my own apps shortcuts with the ShortcutManager like described here https://developer.android.com/guide/topics/ui/shortcuts.html, but how do I get a list…
prom85
  • 16,896
  • 17
  • 122
  • 242
2
votes
4 answers

ActivityNotFoundException: Shortcut could not be started

I'm trying to implement App Shortcuts to my app, but i can't get them work. My shortcut.xml:
Anton
  • 251
  • 3
  • 13
2
votes
3 answers

7.1.1 - Check if SHORTCUT was used

So, basically what I want to achieve is: get to know when I am accessing the activity through a shortcut and when not. I am using static shortcuts. Went through the documentation but no luck. Maybe it's related more to the intent, which is a part of…
1
2 3