John Doe wrote on 29.07.2021 15:53
> Interesting app, but does not work on my Android 11. Instead of Running
> Services, the produced shortcut shows All Apps.
I agree with you.
We're going to need help from others who know more than we do.
It would be nice if people can try what I suggest below to see if it works,
and then maybe, together, we can solve the problem I agree with you on here.
Yours is a good question because I agree with you it doesn't work the same
way it used to work when we try to make a shortcut to "running services".
I went to this reference from Nov 17, 2020 where I explained how to do it.
<
https://groups.google.com/g/comp.mobile.android/c/_1oTdgCIpkc/m/6Ewik_-BAAAJ>
| Shortcut Creator, by AlexTernHome
| <
https://play.google.com/store/apps/details?id=com.alextern.shortcuthelper>
|
| Shortcut Creator easily created a homescreen "Developer options" icon:
| ShortcutCreator > Shortcuts: Settings > System Actions: Developer options
| (Then press the big "plus" key at the top right, & then "To Launcher".)
| (This puts a "Developer options" shortcut icon on your homescreen.)
|
| ShortcutCreator also created the "Running services" homescreen icon:
| ShortcutCreator > Shortcuts: Settings > Settings Activities: Observe activities
| (Scroll down to select "Running services" (.Settings$RunningServicesActivity)
| (Then press the big "plus" key at the top right, & then "To Launcher".)
| (This puts a "Running services" shortcut icon on your homescreen.)
| (...PLICATION_DEVELOPMENT_SETTINGS)
|
| Using ShortcutCreator is a bit confusing as there are many options, e.g.,
| Running services (.Settings$RunningServicesActivity)
| Running services (.RunningServices)
| Both of which "seemed" to have done the same thing in my quick tests...
|
| Nonetheless, these methods appear to allow us to put a homescreen shortcut
| to any setting that we want, which I put in a folder in my dock center:
| <
https://i.postimg.cc/T2Szy9dt/settings02.jpg>
However, when I followed those steps on Android 11, it created a "Running
services" shortcut, but when I pressed that shortcut, it went instead to the
memory usage of all the apps instead of the services which are running.
<com.android.settings.Settings$RunningServicesActivity>
This is evidence that in the older android that same shortcut brought up the
running services, but on Android 11, either this is a bug, or they changed
what running services does.
If you've ever run these shortcut makers, you'll see the results they
display are numerous (many hundreds of options) where I just tested the
"Developer Options Dashboard Activity"
<com.android.settings.Settings$DevelopmentSettingsDashboardActivity>
This saves a couple of steps but it's still a click away from there to press
"Running services (View and control currently running services)"
There may be a way to _add_ that extra click though, but I've never done it.
1. Install this app first, which is the best shortcut maker overall (IMHO).
<
https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker>
2. Open that app and press on the green "Settings" (this is the button in
the middle of the screen after "Intents" and before "Websites").
3. Select the "Settings Activities" (which is the first in the list).
4. Scroll down to "Developer options" where you will see the two choices
<com.android.settings.Settings$DevelopmentSettingsDashboardActivity>
<com.android.settings.Settings$DevelopmentSettingsDisabledActivity>
5. Tap the first one & then tap "Try this Shortcut".
Notice it takes you exactly one step above where we want to go in order
to display the list of running processes (to display the list of running
processes you'd just have to then tap on "Running services" after that).
This makes it _two_ clicks to list all running processes, not one. Drat.
So what we want to do is, somehow, _modify_ the shortcut to the activity.
The question is how?
I don't know, but if I long press on DevelopmentSettingsDashboardActivity
I can "Edit Intent", which I've never done, but which has "Extras" which
has "Key" and "Value" fields.
Maybe we can somehow add this extra step using those "Intents"?
I don't know.
The closest I can get, so far, to displaying Android 11 running services is
_two_ taps (not one like it used to be in an earlier Android version).
Tap 1 =
com.android.settings/com.android.settings.Settings$DevelopementSettingsDashboardActivity
Tap 2 =
Running services
Does anyone here know how to add that extra step to any given shortcut?
--
Everything said above is tested, as always, by me, as my factual credibiltiy
being correct is the most valuable thing that I share with others on Usenet.