Settings screen Actions using Intent

Peter Simpson

Expert
Licensed User
Longtime User
Hello All,
While looking on how to open the settings screen with code in B4A, I found the following Actions list. You can use the list below with the code below to open certain settings in the settings screens. Just replace the blue text in the code with the blue text in the list and that's it...

Dim DoAction As Intent
DoAction.Initialize("android.settings.LOCATION_SOURCE_SETTINGS", "")
StartActivity(DoAction)


Action Details(Activity action)
ACCESSIBILITY_SETTINGS = Show settings for accessibility modules.
ADD_ACCOUNT = Show add account screen for creating a new account.
AIRPLANE_MODE_SETTINGS = Show settings to allow entering/exiting airplane mode.
APN_SETTINGS = Show settings to allow configuration of APNs.
APPLICATION_DETAILS_SETTINGS = Show screen of details about a particular application.
APPLICATION_DEVELOPMENT_SETTINGS = Show settings to allow configuration of application development-related settings.
APPLICATION_SETTINGS = Show settings to allow configuration of application-related settings.
BLUETOOTH_SETTINGS = Show settings to allow configuration of Bluetooth.
DATA_ROAMING_SETTINGS = Show settings for selection of 2G/3G.
DATE_SETTINGS = Show settings to allow configuration of date and time.
DEVICE_INFO_SETTINGS = Show general device information settings (serial number, software version, phone number, etc.).
DISPLAY_SETTINGS = Show settings to allow configuration of display.
INPUT_METHOD_SETTINGS = Show settings to configure input methods, in particular allowing the user to enable input methods.
INPUT_METHOD_SUBTYPE_SETTINGS = Show settings to enable/disable input method subtypes.
INTERNAL_STORAGE_SETTINGS = Show settings for internal storage.
LOCALE_SETTINGS = Show settings to allow configuration of locale.
LOCATION_SOURCE_SETTINGS = Show settings to allow configuration of current location sources.
MANAGE_ALL_APPLICATIONS_SETTINGS = Show settings to manage all applications.
MANAGE_APPLICATIONS_SETTINGS = Show settings to manage installed applications.
MEMORY_CARD_SETTINGS = Show settings for memory card storage.
NETWORK_OPERATOR_SETTINGS = Show settings for selecting the network operator.
NFCSHARING_SETTINGS = Show NFC Sharing settings.
NFC_SETTINGS = Show NFC settings.
PRIVACY_SETTINGS = Show settings to allow configuration of privacy options.
QUICK_LAUNCH_SETTINGS = Show settings to allow configuration of quick launch shortcuts.
SEARCH_SETTINGS = Show settings for global search.
SECURITY_SETTINGS = Show settings to allow configuration of security and location privacy.
SETTINGS = Show system settings.
SOUND_SETTINGS = Show settings to allow configuration of sound and volume.
SYNC_SETTINGS = Show settings to allow configuration of sync settings.
USER_DICTIONARY_SETTINGS = Show settings to manage the user input dictionary.
WIFI_IP_SETTINGS = Show settings to allow configuration of a static IP address for Wi-Fi.
WIFI_SETTINGS = Show settings to allow configuration of Wi-Fi.
WIRELESS_SETTINGS = Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.
EXTRA_AUTHORITIES = Limit available options in launched activity based on the given authority.

Enjoy...
 

Amalkotey

Active Member
Licensed User
Longtime User
Thank you for the information.
 
Upvote 0

Charlie_M

Member
Licensed User
Longtime User
Thanks for the info. I have a question though. in order to use my settings button on my S4 where would I need to place the "StartActivity(DoAction)"
Line? Thanks.
 
Upvote 0
Top