• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How to manually create a homescreen shortcut to a known unique Android Activity?

Search This thread

GalaxyA325G

Member
May 11, 2021
44
12
Is there a tool that will manually create a shortcut to an "Activity" if you already know the unique name of that Android activity?

An "Activity" is, essentially, a "page" inside of any Android app or the Android operating system "Settings" (which is what this question is about).

There are many shortcut-creation apps which will create a homescreen shortcut for you if you can navigate through the hundreds of Activities in seemingly random order - but this question is about MANUALLY creating the shortcut when all you know is the unique name of the Android Activity.

All the shortcut-creation apps seem to force you to pick the existing Android "Activity" out of a given (huge) list, where those lists, if you've never seen them, are horribly jumbled up (and where the search engines stink).
And yet, sometimes you already know the unique name of the Activity, which often you can get using an app such as "Shortcut Widgets".
Trivial example:
  1. Start "Shortcut Widgets" & press "Start inspecting" (press OK as needed)
  2. Navigate to "Android 11 Settings > Privacy > Ads > Reset advertising ID > OK"
  3. Return to "Shortcut Widgets" where you will see a "trace" of where you went, the latest of which should be the very last Activity (page) in Settings that you visited (which was the "Activity" for "Reset advertising ID"
    • Google Play services
    • com.google.android.gms/com.google.android.gms.ads.settings.AdsSettingsActivity

While that is a trivial example (because you can easily ALSO find that specific Activity in the various shortcut-creator apps), there are many times when you KNOW the unique Activity name, but you don't know how to get to that activity in the Android settings.

An example of a shortcut you might want to create based on the unique Activity name is this check on Google Location Accuracy GMS settings.
"com.google.android.gms.location.settings.LocationAccuracyActivity"

Another example might be this unique activity to check on app memory usage.
"com.android.settings.Settings$AppMemoryUsageActivity"

Maybe you want to check on app permission settings
"com.android.settings.Settings$ManageApplicationsActivity"

Or maybe you want to dive into "Apps & notifications" advanced permission settings page.
"com.android.settings.Settings$AppAndNotificationDashboardActivity"

Perhaps you want to see which apps have had their permission automatically disabled in the past 39 days due to lack of use.
"com.android.settings.Settings$SecDisabledAppsActivity"

Yet another example may be this unique activity which views notification switches.
"com.android.settings.Settings$NotificationAppListActivity"

In many of these situations where either you can't find the "Activity" in the shortcut-maker apps, but you KNOW the unique Activity name (perhaps gleaned from using Shortcut Widgets), you might want to manually type in that name into the homescreen shortcut, much like how you can type a "Target" into a Windows shortcut (or on Android, much like how you can type a URL manually into any homescreen URL shortcut maker app).
But so far I have been unsuccessful at finding a tutorial explaining HOW to MANUALLY create a shortcut to an Android settings Activity when all you know is the unique Activity name.

My goal is to find an app that creates the shortcut by me simply typing
those unique Activity names into that app (instead of searching for them).

In my search, I also found Android "Intent" apps in addition to the shortcut creators, where they "might" help out if only I knew the proper syntax (or had good examples).
  • Instant Intent, by TrianguloY (free, ad free, gsf free, rated 4.7)
  • Intent Launcher, by Ville Valta (free, ad free, gsf free, rated 4.3)
  • Intent, by krow (free, ad free, gsf free, rated 4.3)
  • IntentTask, by Marco Stornelli (free, ad free, gsf free, rated 4.3)
  • Intent Viewer, by maigolab (free, ad free, gsf free, rated 2.1)
In summary, if you already know the Android "Activity" unique name, does an Android utility exist which will create a shortcut to that activity when you manually type in the name (and you use the proper syntax when you do so)?

Is there a tutorial extent which shows how to manually create a homescreen shortcut to an Android "Activity" when you know the unique name?
 
Last edited:

GalaxyA325G

Member
May 11, 2021
44
12
It has been more than two months and nobody is helping us answer the question, which still remains unanswered, unfortunately.

However, I haven't been standing still in TRYING to resolve the unanswered question of how to MANUALLY create a shortcut to an Activity if all you know is the unique name of the Activity.

One of the problems with manually creating a shortcut to any given Activity (just by knowing the name of the Activity) is the syntax required is not intuitive.

To help with the syntax, here's a quick tutorial I wrote to help people get up to speed on the syntax.

Please try it out and add more examples so we can all benefit from each others' efforts.

Tutorial: Opening Android intents & activities
(working syntax & beginner examples)

All were successfully tested on my Android 11 Samsung A32 5G.

1. Install "Instant Intent" freeware, by Krow
Start "Instant Intent" & press the (+) & enter the fields specified below.
Press the airplane arrow icon to open up the specified Activity above.
(Keep in mind you can long press in History to save as a Favorite and then copy & paste for future steps.)

a. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.google.android.gms
Class Name = co.g.Space
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

b. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.google.android.gms
Class Name = com.google.android.gms.ads.settings.AdsSettingsActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

c. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.google.android.gms
Class Name = com.google.android.gms.nearby.exposurenotification.settings.SettingsActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

d. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.Settings$WifiCallingSettingsActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

e. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.Settings$WifiCallingSettingsActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

f. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.wifi.calling.WifiCallingSuggestionActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

g. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.notification.history.NotificationHistoryActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

h. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.wifi.WifiStatusTest
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

i. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.Settings$SecVolumeSettingsActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

j. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.Settings$WifiControlHistoryActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

k. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.google.android.gms
Class Name = com.google.android.gms.location.settings.LocationAccuracyActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

l. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings.accessibility.AccessibilitySettingsForSetupWizardActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

m. Action = ACTION.MAIN (android.intent.action.MAIN)
Package Name = com.android.settings
Class Name = com.android.settings/com.android.settings.Settings$AppMemoryUsageActivity
Category = CATEGORY.LAUNCHER (android.intent.category.LAUNCHER)

2. Copy any of those syntactically correct URI examples above to your clipboard.
a. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.google.android.gms;component=com.google.android.gms/co.g.Space;end
b. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.google.android.gms;component=com.google.android.gms/.ads.settings.AdsSettingsActivity;end
b. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.google.android.gms;component=com.google.android.gms/com.google.android.gms.ads.settings.AdsSettingsActivity;end
c. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.google.android.gms;component=com.google.android.gms/.nearby.exposurenotification.settings.SettingsActivity;end
c. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.google.android.gms;component=com.google.android.gms/com.google.android.gms.nearby.exposurenotification.settings.SettingsActivity;end
d. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/.Settings$WifiCallingSettingsActivity;end
d. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.Settings$WifiCallingSettingsActivity;end
e. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/.Settings%24WifiCallingSettingsActivity;end
f. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/.wifi.calling.WifiCallingSuggestionActivity;end
g. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/.notification.history.NotificationHistoryActivity;end
g. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.notification.history.NotificationHistoryActivity;end
h. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.wifi.WifiStatusTest;end
i. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.Settings$SecVolumeSettingsActivity;end
j. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.Settings$WifiControlHistoryActivity;end
k. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.google.android.gms;component=com.google.android.gms/com.google.android.gms.location.settings.LocationAccuracyActivity;end
l. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.accessibility.AccessibilitySettingsForSetupWizardActivity;end
m. intent:#intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.settings;component=com.android.settings/com.android.settings.Settings$AppMemoryUsageActivity;end

3. Install "Instant Intent" freeware, by TrianguloY
<https://github.com/TrianguloY/intent>
<https://play.google.com/store/apps/details?id=com.trianguloy.instantintent>

4. Start "Instant Intent" & paste any URI above & press "Open Intent".
Each of those examples above should open up the specified Activity below.
a. Google Play services storage (Settings > Apps > Google Play Services > Storage > Manage Storage)
b. Ads (Settings > Privacy > Ads)
c. Exposure Notifications (Settings > Google > Covid-19 Exposure Notifications)
d. Wi-Fi calling (afaik this is a hidden Activity unavailable to users via a menu)
e. Wi-Fi calling (afaik this is a hidden Activity unavailable to users via a menu)
f. Wi-Fi calling (afaik this is a hidden Activity unavailable to users via a menu)
g. Notification history (Settings > Notifications > Advanced settings > Notification history)
h. WiFi Status (afaik this is a hidden Activity unavailable to users via a menu)
i. Volume (Settings > Sounds and vibration > Volume)
j. Wi-Fi control history (afaik this is a hidden Activity unavailable to users via a menu)
k. Improve Google Location Accuracy (Settings > Location > Google Location Accuracy)
l. Vision Settings (afaik this is a hidden Activity unavailable to users via a menu)
m. Memory usage (afaik this is a hidden Activity unavailable to users via a menu)

Optional:

5. Test by running these commands inside F-Droid Termux on Android.
a. am start -n com.google.android.gms/co.g.Space
b. am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
c. am start -n com.google.android.gms/.nearby.exposurenotification.settings.SettingsActivity
d. am start -n com.android.settings/.Settings\$WifiCallingSettingsActivity
e. am start -n 'com.android.settings/.Settings$WifiCallingSettingsActivity'
f. am start -n com.android.settings/.wifi.calling.WifiCallingSuggestionActivity
g. am start -n com.android.settings/.notification.history.NotificationHistoryActivity
h. am start -n com.android.settings/com.android.settings.wifi.WifiStatusTest
i. am start -n com.android.settings/com.android.settings.Settings\$SecVolumeSettingsActivity
j. am start -n com.android.settings/com.android.settings.Settings\$WifiControlHistoryActivity
k. am start -n com.google.android.gms/com.google.android.gms.location.settings.LocationAccuracyActivity
l. am start -n com.android.settings/com.android.settings.accessibility.AccessibilitySettingsForSetupWizardActivity
m. am start -n com.android.settings/com.android.settings.Settings\$AppMemoryUsageActivity

6. Test by opening the same Activities using adb on a Windows PC.
a. adb shell am start -n com.google.android.gms/co.g.Space
b. adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
c. adb shell am start -n com.google.android.gms/.nearby.exposurenotification.settings.SettingsActivity
d. adb shell am start -n com.android.settings/.Settings\$WifiCallingSettingsActivity
e. adb shell am start -n 'com.android.settings/.Settings$WifiCallingSettingsActivity'
f. adb shell am start -n com.android.settings/.wifi.calling.WifiCallingSuggestionActivity
g. adb shell am start -n com.android.settings/.notification.history.NotificationHistoryActivity
h. adb shell am start -n com.android.settings/com.android.settings.wifi.WifiStatusTest
i. adb shell am start -n com.android.settings/com.android.settings.Settings\$SecVolumeSettingsActivity
j. adb shell am start -n com.android.settings/com.android.settings.Settings\$WifiControlHistoryActivity
k. adb shell am start -n com.google.android.gms/com.google.android.gms.location.settings.LocationAccuracyActivity
l. adb shell am start -n com.android.settings/com.android.settings.accessibility.AccessibilitySettingsForSetupWizardActivity
m. adb shell am start -n com.android.settings/com.android.settings.Settings\$AppMemoryUsageActivity

Please test and report how these examples work on your Android device. Also please add additional examples you may find useful.

Most importantly, if you can find an app that creates these shortcuts, (from just the information above, without pulling it from a listing) please let all of us know as soon as you create your first shortcut.

To my knowledge, NOBODY on the Internet knows the answer to this question (but let's hope that isn't true).