让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,如需转载请自行联系原作者

相关文章
|
28天前
|
存储 消息中间件 人工智能
【08】AI辅助编程完整的安卓二次商业实战-修改消息聊天框背景色-触发聊天让程序异常终止bug牵涉更多聊天消息发送优化处理-优雅草卓伊凡
【08】AI辅助编程完整的安卓二次商业实战-修改消息聊天框背景色-触发聊天让程序异常终止bug牵涉更多聊天消息发送优化处理-优雅草卓伊凡
126 10
【08】AI辅助编程完整的安卓二次商业实战-修改消息聊天框背景色-触发聊天让程序异常终止bug牵涉更多聊天消息发送优化处理-优雅草卓伊凡
|
28天前
|
存储 消息中间件 人工智能
【05】AI辅助编程完整的安卓二次商业实战-消息页面媒体对象(Media Object)布局实战调整-按钮样式调整实践-优雅草伊凡
【05】AI辅助编程完整的安卓二次商业实战-消息页面媒体对象(Media Object)布局实战调整-按钮样式调整实践-优雅草伊凡
76 11
【05】AI辅助编程完整的安卓二次商业实战-消息页面媒体对象(Media Object)布局实战调整-按钮样式调整实践-优雅草伊凡
|
5月前
|
Android开发 开发者
Android设置View是否可用
在Android开发中,有时需要将布局设置为不可点击状态(失去焦点)。常见的解决方法是使用`setOnClickListener(null)`,但本文介绍一种更通用的方式:通过封装`setViewEnabled`方法实现。该方法可递归设置View及其子View的启用状态,支持传入目标View和布尔值(`true`为可用,`false`为禁用)。例如,调用`setViewEnabled(edittext, false)`即可禁用EditText。文章附有源码及示例动图,帮助开发者快速理解与应用。
111 1
|
8月前
|
JavaScript 前端开发 Android开发
【03】仿站技术之python技术,看完学会再也不用去购买收费工具了-修改整体页面做好安卓下载发给客户-并且开始提交网站公安备案-作为APP下载落地页文娱产品一定要备案-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
【03】仿站技术之python技术,看完学会再也不用去购买收费工具了-修改整体页面做好安卓下载发给客户-并且开始提交网站公安备案-作为APP下载落地页文娱产品一定要备案-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
246 13
【03】仿站技术之python技术,看完学会再也不用去购买收费工具了-修改整体页面做好安卓下载发给客户-并且开始提交网站公安备案-作为APP下载落地页文娱产品一定要备案-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
|
3月前
|
安全 数据库 Android开发
在Android开发中实现两个Intent跳转及数据交换的方法
总结上述内容,在Android开发中,Intent不仅是活动跳转的桥梁,也是两个活动之间进行数据交换的媒介。运用Intent传递数据时需注意数据类型、传输大小限制以及安全性问题的处理,以确保应用的健壯性和安全性。
218 11
|
6月前
|
存储 Android开发 数据安全/隐私保护
如何在Android设备上撤销Flutter应用程序的所有权限?
如何在Android设备上撤销Flutter应用程序的所有权限?
369 64
|
6月前
|
缓存 Android开发 开发者
Flutter环境配置完成后,如何在Android设备上运行Flutter应用程序?
Flutter环境配置完成后,如何在Android设备上运行Flutter应用程序?
1041 62
|
6月前
|
开发工具 Android开发 开发者
在Android设备上运行Flutter应用程序时,如果遇到设备未授权的问题该如何解决?
在Android设备上运行Flutter应用程序时,如果遇到设备未授权的问题该如何解决?
345 61
|
5月前
|
Android开发 开发者
Android中Dialog位置+样式的设置
本文介绍了在Android开发中如何设置Dialog的位置和样式。通过自定义`MyDialog`类,可以灵活调整Dialog的显示位置,例如将其固定在屏幕底部,并设置宽度匹配父布局。同时,文章还展示了如何模仿Android原生Dialog样式,通过定义`MyDialogStyle`去除标题栏、设置背景透明度、添加阴影效果以及配置点击外部关闭等功能,从而实现更加美观和符合需求的Dialog效果。代码示例详细,便于开发者快速上手实现。
341 2
|
8月前
|
数据采集 JavaScript Android开发
【02】仿站技术之python技术,看完学会再也不用去购买收费工具了-本次找了小影-感觉页面很好看-本次是爬取vue需要用到Puppeteer库用node.js扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
【02】仿站技术之python技术,看完学会再也不用去购买收费工具了-本次找了小影-感觉页面很好看-本次是爬取vue需要用到Puppeteer库用node.js扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
271 7
【02】仿站技术之python技术,看完学会再也不用去购买收费工具了-本次找了小影-感觉页面很好看-本次是爬取vue需要用到Puppeteer库用node.js扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡

热门文章

最新文章