android shortcuts are displayed with a long-press on the android application launch icon and can start different or customized activities within the application
Questions tagged [android-shortcut]
74 questions
55
votes
3 answers
Shortcuts not working after updating to Android studio 4, in Mac?
After updating to Android Studio 4 from AS 3.5, as a Mac user I found out none of the default shortcuts work properly, i.e cmd+shift+F does not open search everywhere dialog anymore?

bastami82
- 5,955
- 7
- 33
- 44
26
votes
4 answers
Static android shortcuts for multiple flavors?
Is it possible to define static shortcuts for multiple flavors without duplicating the shortcuts.xml ? I have two flavors:
main (package: com.test)
free (package: com.test.free)
The shortcuts.xml looks like this:

André Roß
- 279
- 3
- 5
12
votes
6 answers
How to jump to class or method implementation in Android Studio
With Eclipse I would just hover over class or method name and CTRL+? to jump to the implementation. Even if it was an import I was interested in I could jump to the implementation.
In Android Studio, how is this done for methods and classes?
I…

FunctionallyReactive
- 549
- 3
- 7
- 14
11
votes
1 answer
How do I create a shortcut for any app on desktop?
I think I've tried all the solutions I found on the internet, but no one worked - no force close, but nothing appears on desktop.
Now, I have this:
private void createShortcutOnDesktop(Application app) {
Intent shortcutIntent = new Intent();
…

xuso
- 695
- 1
- 8
- 19
9
votes
1 answer
Android - Error while trying to add app shortcuts
My app has minSdk = 21 and targetSdk = 26
I wanted to set up the app shortcuts
I've added the tag to the first activity that's launched when the app starts.

Daniele
- 4,163
- 7
- 44
- 95
8
votes
7 answers
How to remove the badge in app shortcut icon?
How to remove the badge in app shortcut icon in android? When i create app shortcut programmatically, along with the icon specified for shortcut, app icon comes at the bottom-right corner of the icon. I don't want that badge.
Here is the code I…

Athira
- 1,177
- 3
- 13
- 35
6
votes
2 answers
Share intent option using Shortcut android
By default iOS is providing "Share appname" option in the shortcut options,when the app is downloaded from the app store.
Refer the image below:
When clicked on it,it is opening the share intent in the phone menu screen itself,without redirecting…

kgandroid
- 5,507
- 5
- 39
- 69
6
votes
4 answers
Android Studio 2.1.1 using tabs, not spaces, even though tabs are not checked in Settings
When editing Java files, if I'm at the end of the line and I type the Enter key, it starts the next line properly indented 4 columns, to match the line above. That's OK but it's indenting with a tab, not spaces, even though in…

user316117
- 7,971
- 20
- 83
- 158
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…

Nabin Bhandari
- 15,949
- 6
- 45
- 59
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
5
votes
1 answer
How to pass extra data to activity from homescreen shortcut?
I have an Non-Launcher activity with a context menu. The menu contains an option to add the activity to android home screen as a shortcut.
I am using the below code to create the shortcut.
private void ShortcutIcon(){
Intent shortcutIntent =…

Bluemarble
- 1,925
- 4
- 20
- 35
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…

Samset
- 109
- 7
4
votes
4 answers
4
votes
0 answers
How to tell if broadcast received Android
I'm creating a shortcut by sending out this broadcast.
Intent shortcutIntent = new Intent(this, AuthenticationActivity.class);
// create the broadcast
final Intent intent = new Intent("com.android.launcher.action.INSTALL_SHORTCUT");
…

Zach Sperske
- 658
- 9
- 28
4
votes
1 answer
Can I prevent a shortcut (android.intent.action.CREATE_SHORTCUT) to appear in the add widget section of the launcher?
If you start my app you see a list of products, and if you select an item I open a product page.
Since some of my customers use the app always with the same product, I added a "add to homescreen" option to each product page. This creates a shortcut…

bookwormat
- 113
- 9