• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Setting Intents

I tried the following on a Motorola Droid Turbo 2 and two of them worked.

Any suggestions?


devB (734)
A1: Send Intent [ Action:android.settings.ACTION_AIRPLANE_MODE_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A2: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A3: Send Intent [ Action:android.settings.ACTION_DISPLAY_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A4: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A5: Send Intent [ Action:android.settings.ACTION_DREAM_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A6: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A7: Send Intent [ Action:android.settings.ACTION_INTERNAL_STORAGE_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A8: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A9: Send Intent [ Action:android.settings.ACTION_MEMORY_CARD_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A10: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
<Works>
A11: Send Intent [ Action:android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A12: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A13: Send Intent [ Action:android.settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A14: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
<Works>
A15: Send Intent [ Action:android.settings.ACTION_PRINT_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A16: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A17: Send Intent [ Action:android.settings.ACTION_SECURITY_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A18: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A19: Send Intent [ Action:android.settings.ACTION_SOUND_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A20: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A21: Send Intent [ Action:android.settings.ACTION_WIFI_IP_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A22: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A23: Send Intent [ Action:android.settings.ACTION_WIFI_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A24: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A25: Send Intent [ Action:android.settings.ACTION_WIRELESS_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]

... Thom
 
Oddly ... these are now all working ... the constants are not as documented ...

devB (734)
A1: Send Intent [ Action:android.settings.AIRPLANE_MODE_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A2: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A3: Send Intent [ Action:android.settings.DISPLAY_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A4: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A5: Send Intent [ Action:android.settings.DREAM_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A6: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A7: Send Intent [ Action:android.settings.INTERNAL_STORAGE_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A8: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A9: Send Intent [ Action:android.settings.MEMORY_CARD_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A10: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A11: Send Intent [ Action:android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A12: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A13: Send Intent [ Action:android.settings.NOTIFICATION_POLICY_ACCESS_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A14: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A15: Send Intent [ Action:android.settings.ACTION_PRINT_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A16: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A17: Send Intent [ Action:android.settings.SECURITY_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A18: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A19: Send Intent [ Action:android.settings.SOUND_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A20: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A21: Send Intent [ Action:android.settings.WIFI_IP_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A22: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A23: Send Intent [ Action:android.settings.WIFI_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A24: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A25: Send Intent [ Action:android.settings.WIRELESS_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]

... Thom
 
The following are all 57 of them. Those beginning with XXXX_ do not resolve on my Motorola Droid Turbo 2 either with or without the ACTION_.

devA (18)
A1: Variable Set [ Name:%string To:AIRPLANE_MODE_SETTINGS,APN_SETTINGS,XXXX_ACTION_APPLICATION_DETAILS_SETTINGS,XXXX_ACTIONAPPLICATION_DEVELOPMENT_SETTINGS,APPLICATION_SETTINGS,BATTERY_SAVER_SETTINGS,BLUETOOTH_SETTINGS,CAPTIONING_SETTINGS,CAST_SETTINGS,DATA_ROAMING_SETTINGS,DEVICE_INFO_SETTINGS,DATE_SETTINGS,DISPLAY_SETTINGS,DREAM_SETTINGS,HARD_KEYBOARD_SETTINGS,HOME_SETTINGS,XXXX_ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS,IGNORE_BATTERY_OPTIMIZATION_SETTINGS,INPUT_METHOD_SETTINGS,INPUT_METHOD_SUBTYPE_SETTINGS,INTERNAL_STORAGE_SETTINGS,LOCALE_SETTINGS,LOCATION_SOURCE_SETTINGS,MANAGE_ALL_APPLICATIONS_SETTINGS,MANAGE_APPLICATIONS_SETTINGS,MANAGE_DEFAULT_APPS_SETTINGS,XXXX_ACTION_MANAGE_OVERLAY_PERMISSION,XXXX_ACTION_MANAGE_WRITE_SETTINGS,MEMORY_CARD_SETTINGS,NETWORK_OPERATOR_SETTINGS,ACTION_NFC_PAYMENT_SETTINGS,NFC_SETTINGS,NFCSHARING_SETTINGS,ACTION_NOTIFICATION_LISTENER_SETTINGS,NOTIFICATION_POLICY_ACCESS_SETTINGS,ACTION_PRINT_SETTINGS,PRIVACY_SETTINGS,XXXX_ACTION_QUICK_LAUNCH_SETTINGS,XXXX_ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS,XXXX_ACTION_SEARCH_SETTINGS,SECURITY_SETTINGS,SETTINGS,SHOW_REGULATORY_INFO,SOUND_SETTINGS,SYNC_SETTINGS,USAGE_ACCESS_SETTINGS,USER_DICTIONARY_SETTINGS,XXXX_ACTION_VOICE_CONTROL_AIRPLANE_MODE,XXXX_ACTION_VOICE_CONTROL_BATTERY_SAVER_MODE,VOICE_CONTROL_DO_NOT_DISTURB_MODE,VOICE_INPUT_SETTINGS,VPN_SETTINGS,VR_LISTENER_SETTINGS,WEBVIEW_SETTINGS,WIFI_IP_SETTINGS,WIFI_SETTINGS,WIRELESS_SETTINGS, Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Variable Split [ Name:%string Splitter:, Delete Base:Off ]
A3: For [ Variable:%str Items:%string(1:57) ]
A4: Send Intent [ Action:android.settings.%str Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity ]
A5: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A6: Flash [ Text:%str Long:On ]
A7: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A8: End For

.... Thom
 
Last edited:
That's a nice collection of intents Thom. When I get the chance, will play around with them and those that don't work.

So, are these all of the natively available settings intents then?
 
I do not know. I am still learning. The documentation I was lead to by a helpful Tsker user is at ...
https://developer.android.com/reference/android/provider/Settings.html
... and I don't know how complete it is.

I tried a subset and the Tasker Author pointed out that two I had a problem with were included in the next Tasker release.

I then ran all of them to see what was here. A few of them don't work. There was no comment (yet) from the author on the complete list.

I had never played with Intents before and find it rather fascinating.

I got down this path because I wrote an app that needs the user to grant notification access in order to totally silence instead of go to vibrate. It was moved in 7.0 and I was confronted with a need to have het another special case to access it. Send Intent finds it in 6.0.1 and 7.0.

... Thom
 
Back
Top Bottom