Hello community,
I'd like to ask a general question:
how to run ANY intent / package / activity?
A bit of theory:
Usually every app has some (or more) activity. I'd like to run any activity of any app / package. But this is not that mandatory. What I really like to achieve is to run ANY settings intent / activity.
I have an app (which is not on google play store anymore), which shows an current activity running. During the time I managed some settings to run:
This gives an intent about battery optimization:
Dim poInt As Intent
poInt.Initialize("android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS","")
StartActivity(poInt)
This gives an intent about mobile data usage:
Dim poInt As Intent
poInt.Initialize("android.settings.DATA_USAGE_SETTINGS","")
StartActivity(poInt)
This throws an activity about casting:
Dim poInt As Intent
poInt.Initialize("android.settings.CAST_SETTINGS","")
StartActivity(poInt)
... and a few more...
However, some are a bit strange to me (it's because I don't have a fully knowledge about this)
This calling:
Dim poInt As Intent
poInt .Initialize("android.intent.action.POWER_USAGE_SUMMARY","")
StartActivity(poInt )
gives this (according to 'Current activity' app display):
com.samsung.android.lool
com.samsung.android.sm.battery.ui.graph.Last7DaysGraphActivity
Please, take a look on attached screenshots. They are made with launched app mentioned before called 'Current activity'
These shots shows some intents and also a note from 'Current activity' app displayed at very top of screenshot.
What I really want to achieve is to run 'Charging settings', as displayed on one of the screenshots. I'd like to launch it directly, not within about five click through settings or so...
Also, having a list of recents as displayed of one of the screenshots would be also nice - with launch desired intent.
Anyone can help with this?
Many thanks.
I'd like to ask a general question:
how to run ANY intent / package / activity?
A bit of theory:
Usually every app has some (or more) activity. I'd like to run any activity of any app / package. But this is not that mandatory. What I really like to achieve is to run ANY settings intent / activity.
I have an app (which is not on google play store anymore), which shows an current activity running. During the time I managed some settings to run:
This gives an intent about battery optimization:
Dim poInt As Intent
poInt.Initialize("android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS","")
StartActivity(poInt)
This gives an intent about mobile data usage:
Dim poInt As Intent
poInt.Initialize("android.settings.DATA_USAGE_SETTINGS","")
StartActivity(poInt)
This throws an activity about casting:
Dim poInt As Intent
poInt.Initialize("android.settings.CAST_SETTINGS","")
StartActivity(poInt)
... and a few more...
However, some are a bit strange to me (it's because I don't have a fully knowledge about this)
This calling:
Dim poInt As Intent
poInt .Initialize("android.intent.action.POWER_USAGE_SUMMARY","")
StartActivity(poInt )
gives this (according to 'Current activity' app display):
com.samsung.android.lool
com.samsung.android.sm.battery.ui.graph.Last7DaysGraphActivity
Please, take a look on attached screenshots. They are made with launched app mentioned before called 'Current activity'
These shots shows some intents and also a note from 'Current activity' app displayed at very top of screenshot.
What I really want to achieve is to run 'Charging settings', as displayed on one of the screenshots. I'd like to launch it directly, not within about five click through settings or so...
Also, having a list of recents as displayed of one of the screenshots would be also nice - with launch desired intent.
Anyone can help with this?
Many thanks.