让android应用程序跳转到系统的各个设置页面

简介:

在android SDK文档中有这样一个类,android.provider.Settings类提供android系统各个页面的跳转常量:

 

 

String

ACTION_ACCESSIBILITY_SETTINGS

Activity Action: Show settings for accessibility modules.

String

ACTION_ADD_ACCOUNT

Activity Action: Show add account screen for creating a new account.

String

ACTION_AIRPLANE_MODE_SETTINGS

Activity Action: Show settings to allow entering/exiting airplane mode.

String

ACTION_APN_SETTINGS

Activity Action: Show settings to allow configuration of APNs.

String

ACTION_APPLICATION_DETAILS_SETTINGS

Activity Action: Show screen of details about a particular application.

String

ACTION_APPLICATION_DEVELOPMENT_SETTINGS

Activity Action: Show settings to allow configuration of application development-related settings.

String

ACTION_APPLICATION_SETTINGS

Activity Action: Show settings to allow configuration of application-related settings.

String

ACTION_BLUETOOTH_SETTINGS

Activity Action: Show settings to allow configuration of Bluetooth.

String

ACTION_DATA_ROAMING_SETTINGS

Activity Action: Show settings for selection of2G/3G.

String

ACTION_DATE_SETTINGS

Activity Action: Show settings to allow configuration of date and time.

String

ACTION_DEVICE_INFO_SETTINGS

Activity Action: Show general device information settings (serial number, software version, phone number, etc.).

String

ACTION_DISPLAY_SETTINGS

Activity Action: Show settings to allow configuration of display.

String

ACTION_INPUT_METHOD_SETTINGS

Activity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.

String

ACTION_INPUT_METHOD_SUBTYPE_SETTINGS

Activity Action: Show settings to enable/disable input method subtypes.

String

ACTION_INTERNAL_STORAGE_SETTINGS

Activity Action: Show settings for internal storage.

String

ACTION_LOCALE_SETTINGS

Activity Action: Show settings to allow configuration of locale.

String

ACTION_LOCATION_SOURCE_SETTINGS

Activity Action: Show settings to allow configuration of current location sources.

String

ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS

Activity Action: Show settings to manage all applications.

String

ACTION_MANAGE_APPLICATIONS_SETTINGS

Activity Action: Show settings to manage installed applications.

String

ACTION_MEMORY_CARD_SETTINGS

Activity Action: Show settings for memory card storage.

String

ACTION_NETWORK_OPERATOR_SETTINGS

Activity Action: Show settings for selecting the network operator.

String

ACTION_PRIVACY_SETTINGS

Activity Action: Show settings to allow configuration of privacy options.

String

ACTION_QUICK_LAUNCH_SETTINGS

Activity Action: Show settings to allow configuration of quick launch shortcuts.

String

ACTION_SEARCH_SETTINGS

Activity Action: Show settings for global search.

String

ACTION_SECURITY_SETTINGS

Activity Action: Show settings to allow configuration of security and location privacy.

String

ACTION_SETTINGS

Activity Action: Show system settings.

String

ACTION_SOUND_SETTINGS

Activity Action: Show settings to allow configuration of sound and volume.

String

ACTION_SYNC_SETTINGS

Activity Action: Show settings to allow configuration of sync settings.

String

ACTION_USER_DICTIONARY_SETTINGS

Activity Action: Show settings to manage the user input dictionary.

String

ACTION_WIFI_IP_SETTINGS

Activity Action: Show settings to allow configuration of a static IP address for Wi-Fi.

String

ACTION_WIFI_SETTINGS

Activity Action: Show settings to allow configuration of Wi-Fi.

String

ACTION_WIRELESS_SETTINGS

Activity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.

String

AUTHORITY

 

String

EXTRA_AUTHORITIES

Activity Extra: Limit available options in launched activity based on the given authority.

String

EXTRA_INPUT_METHOD_ID

如何使用呢?

例如:startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));
即可跳到android手机网络设置页面。

 

  如果要launch Mobile Networks Setting页面按如下方法:

  Intent intent=new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
  ComponentName cName = new ComponentName("com.android.phone","com.android.phone.Settings");
  intent.setComponent(cName);
  startActivity(intent);

 

  如果要进入Networks Operators页面按如下方法:

  Intent intent = new Intent(Intent.ACTION_MAIN);
  intent.setClassName("com.android.phone", "com.android.phone.NetworkSetting");
  startActivity(intent);

 



本文转自java豆子博客园博客,原文链接:http://www.cnblogs.com/error404/archive/2011/11/10/2244761.html,如需转载请自行联系原作者

相关文章
|
6天前
|
Java API 开发工具
如何将python应用编译到android运行
【6月更文挑战第27天】本文介绍在Ubuntu 20上搭建Android开发环境,包括安装JRE/JDK,设置环境变量,添加i386架构,安装依赖和编译工具。并通过`p4a`命令行工具进行apk构建和清理。
22 6
如何将python应用编译到android运行
|
6天前
|
Android开发
Android Studio(2022.3.1)设置阿里云源-新旧版本
Android Studio(2022.3.1)设置阿里云源-新旧版本
33 1
|
23小时前
|
Android开发
Android 开发中跳转到评论页面
Android 开发中跳转到评论页面
8 0
|
2天前
|
存储 Android开发
详细解读Android获取已安装应用信息(图标,名称,版本号,包)
详细解读Android获取已安装应用信息(图标,名称,版本号,包)
|
2天前
|
存储 Android开发
详细解读Android获取已安装应用信息(图标,名称,版本号,包)
详细解读Android获取已安装应用信息(图标,名称,版本号,包)
|
3天前
|
Android开发 开发者 UED
使用AlarmManager实现Android应用中的定时任务
使用AlarmManager实现Android应用中的定时任务
|
5天前
|
Android开发
Android Activity跳转详解
Android Activity跳转详解
10 0
|
5天前
|
Java Android开发
程序与技术分享:Android使用Dagger注入的方式初始化对象的简单使用
程序与技术分享:Android使用Dagger注入的方式初始化对象的简单使用
|
5天前
|
安全 网络协议 网络安全
程序与技术分享:Android应用安全之数据传输安全
程序与技术分享:Android应用安全之数据传输安全
|
9天前
|
安全 搜索推荐 Android开发
探索安卓和iOS系统的优劣与特点
在移动操作系统领域,安卓和iOS一直是最热门的两个选择。本文将探讨安卓和iOS系统的优劣与特点,帮助读者更好地了解这两个操作系统,并为选择合适的移动设备提供参考。
13 0