Questions tagged [android-shortcutmanager]

21 questions
10
votes
1 answer

Update android SDK : install latest platform to implement new APIs such as "ShortcutManager"

Here i am performing demo for Android Shortcuts introduces in android nougat App Shortcuts I have used following code to create app shortcut ShortcutManager shortcutManager; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M)…
Ravi
  • 34,851
  • 21
  • 122
  • 183
5
votes
0 answers

Receive Callback / Broadcast when pinning shortcut in android O

I am trying to add two shortcuts at once. But android 8 shows a dialog and requests permission from the user to add shortcut and two of those dialogs cannot be presented at once. So I need a way by which I can get a callback or broadcast when the…
5
votes
2 answers

Android Quick shortcuts [passing intent extra(or some data) in shortcuts.xml ]

While implementing the static Shortcuts using shortcut.xml, i would like to pass few bundle extras with my intent. need the passed extras to decide on few functionality in the target class after launching the app. is it possible to access the…
SKK
  • 5,261
  • 3
  • 27
  • 39
4
votes
1 answer

Samsung A10 android 11 how to create other apps pinned shortcut programmatically from my app

Samsung A10 android 11 updated, Galaxy S9 and Galaxy S10 tested on these devices but its not working This code is only for android Oreo and above Here is the code which I used for creating the shortcut in android programmatically. In all other…
4
votes
1 answer

Android Shortcut is not working in VIVO 10

I implementing shortcut in my app but this is not working in VIVO 10( Funtouch OS). Please help me. I am already used many method but not success. Method 1: I am using this code but not working @SuppressLint("NewApi") private fun shortcut(){ val…
2
votes
1 answer

Android shortcuts (Pin Shortcuts) : how to remove the '1x1' label?

I create a pinned shortcut for my app using: mShortcutManager.requestPinShortcut(mShortcutInfo, null); as mentioned here. My problem is that I have a '1x1' label in the system dialog box displayed by Android as shown below: My question is : how to…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
2
votes
2 answers

Android - How to receive shortcut create result

Looking at the code sample here - I find the following comment puzzling: // ... We assume here that the // app has implemented a method called createShortcutResultIntent() that // returns a broadcast intent. what does it mean the app has…
1
vote
0 answers

Android shortcuts : how to change the small icon of the shortcut icon?

I create a pinned shortcut for my app using: ShortcutInfo.Builder mShortcutInfoBuilder = new ShortcutInfo.Builder(MainActivity.this,…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
1
vote
0 answers

Add launcher icon to homescreen on app install (without launch) - Pre and post oreo

I have seen on my device running Android 10 that few apps (which are not on playstore) add their launcher icon to homescreen just after install is complete (even without launching the app. I checked that the app's process was not running when the…
1
vote
1 answer

Android ShortCutManager replaces static shortcut by dynamic one

I have 4 static shortcuts defined im my shortcuts.xml (static1, static2, static3, static4) - all are enabled. As soon as I add a dynamic shortcut (dynamic1), the last static shortcut (static4) is overridden by the dynamic one. Thereby, the launcher…
goemic
  • 1,092
  • 12
  • 24
1
vote
2 answers

Shortcut Doesn't Launch The File In Android Q

Edit: I am getting below logs in system_process when I click the pinned shortcut: 2019-10-26 20:00:16.086 2047-3533/system_process I/ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat=file:///storage/emulated/0/Download/AAD.pdf…
Paras Sidhu
  • 652
  • 1
  • 12
  • 36
1
vote
2 answers

Duplicate pinned shortcut using Shortcut Manager

I am trying to create a pinned shortcut on the homescreen of my using ShortcutManager. I am able to create the pinned shortcut using the following code: Intent i = new…
1
vote
0 answers

Android shortcut issue

I am creating a Shortcut icon with the following code which is working on my device. Intent shortcutIntent = new Intent(getApplicationContext(), AlertActivity.class); shortcutIntent.setAction(Intent.ACTION_MAIN); …
Amsheer
  • 7,046
  • 8
  • 47
  • 81
1
vote
1 answer

How do I obtain Intents for static shortcuts (quickcuts) of all installed apps at runtime?

In Android 7.1, there are app shortcuts ("quickcuts") that can be defined as intents in a shortcuts.xml resources file that is then referenced in a meta-data tag of the app's AndroidManifest.xml file. An Action Launcher application can then use the…
0
votes
0 answers

Shortcut launcher created by ShortcutManager is not visible at Bixby single/double press to open app list

So I have a secondary Activity but I don't want to make it visible on home screen on app install, so it doesn't have Main action and Launcher category declared in the manifest: