From: http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2017/0921/8536.html
View btn1 = This.findviewbyid (R.id.button); Btn1.setonclicklistener (New Buttonclicklistener ()); } Private class Buttonclicklistener implements View.onclicklistener {public void OnClick (View v) { //system.exit (0); Android.os.Process.killProcess (Android.os.Process.myPid ()); StartActivity (New Intent (settings.action_settings)); } }
There will always be a need in development, we need to jump to the system settings interface, to guide users to open the required settings.
Usage
The usage is simple, one line of code is done
startActivity(new Intent(Settings.ACTION_SETTINGS));
But this parameter is changed all the time. This allows you to jump through the various setup interfaces of the system. The API path for the class.
API document Ticket Stamp I jump
below is the collation of the table, covering most of the interface, of course, some special interface is not open, such as the installation of NFC interface, need phone hardware support.
constant Field |
Signal |
Action_settings |
System Setup Interface |
Action_apn_settings |
APN Settings Interface |
Action_location_source_settings |
Positioning Settings Interface |
Action_airplane_mode_settings |
More Connection Mode settings interface |
Action_data_roaming_settings |
Dual SIM and mobile network Setup interface |
Action_accessibility_settings |
Barrier-Free Setup interface |
Action_sync_settings |
Sync Settings interface |
Action_add_account |
Add Account Interface |
Action_network_operator_settings |
Select the operator's interface |
Action_security_settings |
Security Settings Interface |
Action_privacy_settings |
Backup Reset Settings interface |
Action_vpn_settings |
VPN setup interface, may not exist |
Action_wifi_settings |
Wireless Network Setup Interface |
Action_wifi_ip_settings |
IP Settings for WiFi |
Action_bluetooth_settings |
Bluetooth settings |
Action_cast_settings |
Projection settings |
Action_date_settings |
Date Time Settings |
Action_sound_settings |
Sound settings |
Action_display_settings |
Display settings |
Action_locale_settings |
Language Settings |
Action_voice_input_settings |
Secondary application and voice input settings |
Action_input_method_settings |
Language and IME settings |
Action_user_dictionary_settings |
Personal Dictionary Settings interface |
Action_internal_storage_settings |
Interface for storage space settings |
Action_search_settings |
Search Settings interface |
Action_application_development_settings |
Developer Options Settings |
Action_device_info_settings |
interface of mobile phone status information |
Action_dream_settings |
Interface for interactive screensaver settings |
Action_notification_listener_settings |
Interface for notification usage settings |
Action_notification_policy_access_settings |
Do not disturb the interface of the permission setting |
Action_captioning_settings |
The interface for subtitle settings |
Action_print_settings |
Print Setup Interface |
Action_battery_saver_settings |
Power Saving Assistant Interface |
Action_home_settings |
Home Screen Setup Interface |
The above is I from red rice note4 one open, cannot open I did not write up, need you to look at the API document.
Contact information
I have limited technology, there are a lot of imperfect places, welcome to point out. (Hard to write, thank you for your star support)
- qq:152046273
- Email:[email protected]
- CSDN Blog Address
- GitHub Blog Address
- GitHub Address
Android jump various system settings interface-Summary