Android Question How to open the Android system network settings page

Solution
go here to find the settings page you want to access: https://developer.android.com/reference/android/provider/Settings

the action settings are constants, you need to use their respective string meaning for b4a. click on the name to find the string. that's what you use. eg:
public static final String ACTION_WIRELESS_SETTINGS -------> "android.settings.WIRELESS_SETTINGS"

then add this b4a code:

B4X:
    Dim SettingsIntent As Intent
    SettingsIntent.Initialize("android.settings.WHICHEVER_SETTING_YOU_CHOSE", "")
    StartActivity(SettingsIntent)

drgottjr

Expert
Licensed User
Longtime User
go here to find the settings page you want to access: https://developer.android.com/reference/android/provider/Settings

the action settings are constants, you need to use their respective string meaning for b4a. click on the name to find the string. that's what you use. eg:
public static final String ACTION_WIRELESS_SETTINGS -------> "android.settings.WIRELESS_SETTINGS"

then add this b4a code:

B4X:
    Dim SettingsIntent As Intent
    SettingsIntent.Initialize("android.settings.WHICHEVER_SETTING_YOU_CHOSE", "")
    StartActivity(SettingsIntent)
 
Upvote 1
Solution

BOHANG

Member
My problem has been resolved, thank you drgottjr
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…