Android3.1打开系统设置页面的正确方法

只需一条语句:

startActivity(new Intent(android.provider.Settings.ACTION_LOCALE_SETTINGS));


参数取不同的值可打开不同的设置页面,以下为参数的取值(详见官方API文档android.provider.Settings类):

StringACTION_ACCESSIBILITY_SETTINGSActivity Action: Show settings for accessibility modules.
StringACTION_ADD_ACCOUNTActivity Action: Show add account screen for creating a new account.
StringACTION_AIRPLANE_MODE_SETTINGSActivity Action: Show settings to allow entering/exiting airplane mode.
StringACTION_APN_SETTINGSActivity Action: Show settings to allow configuration of APNs.
StringACTION_APPLICATION_DETAILS_SETTINGSActivity Action: Show screen of details about a particular application.
StringACTION_APPLICATION_DEVELOPMENT_SETTINGSActivity Action: Show settings to allow configuration of application development-related settings.
StringACTION_APPLICATION_SETTINGSActivity Action: Show settings to allow configuration of application-related settings.
StringACTION_BLUETOOTH_SETTINGSActivity Action: Show settings to allow configuration of Bluetooth.
StringACTION_DATA_ROAMING_SETTINGSActivity Action: Show settings for selection of 2G/3G.
StringACTION_DATE_SETTINGSActivity Action: Show settings to allow configuration of date and time.
StringACTION_DEVICE_INFO_SETTINGSActivity Action: Show general device information settings (serial number, software version, phone number, etc.).
StringACTION_DISPLAY_SETTINGSActivity Action: Show settings to allow configuration of display.
StringACTION_INPUT_METHOD_SETTINGSActivity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.
StringACTION_INPUT_METHOD_SUBTYPE_SETTINGSActivity Action: Show settings to enable/disable input method subtypes.
StringACTION_INTERNAL_STORAGE_SETTINGSActivity Action: Show settings for internal storage.
StringACTION_LOCALE_SETTINGSActivity Action: Show settings to allow configuration of locale.
StringACTION_LOCATION_SOURCE_SETTINGSActivity Action: Show settings to allow configuration of current location sources.
StringACTION_MANAGE_ALL_APPLICATIONS_SETTINGSActivity Action: Show settings to manage all applications.
StringACTION_MANAGE_APPLICATIONS_SETTINGSActivity Action: Show settings to manage installed applications.
StringACTION_MEMORY_CARD_SETTINGSActivity Action: Show settings for memory card storage.
StringACTION_NETWORK_OPERATOR_SETTINGSActivity Action: Show settings for selecting the network operator.
StringACTION_PRIVACY_SETTINGSActivity Action: Show settings to allow configuration of privacy options.
StringACTION_QUICK_LAUNCH_SETTINGSActivity Action: Show settings to allow configuration of quick launch shortcuts.
StringACTION_SEARCH_SETTINGSActivity Action: Show settings for global search.
StringACTION_SECURITY_SETTINGSActivity Action: Show settings to allow configuration of security and location privacy.
StringACTION_SETTINGSActivity Action: Show system settings.
StringACTION_SOUND_SETTINGSActivity Action: Show settings to allow configuration of sound and volume.
StringACTION_SYNC_SETTINGSActivity Action: Show settings to allow configuration of sync settings.
StringACTION_USER_DICTIONARY_SETTINGSActivity Action: Show settings to manage the user input dictionary.
StringACTION_WIFI_IP_SETTINGSActivity Action: Show settings to allow configuration of a static IP address for Wi-Fi.
StringACTION_WIFI_SETTINGSActivity Action: Show settings to allow configuration of Wi-Fi.
StringACTION_WIRELESS_SETTINGSActivity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值