android应用调用系统相关设置的方法
来源:互联网 发布:moment.js 编辑:程序博客网 时间:2024/05/16 06:26
- android中调用系统的设置项,比较简单,只需要new一个对应设置的Intent,并调用startActivity(intent)即可。如下方法中,调用时传入相应的action:
public void processActionSetting(String action) {
Intent intent = new Intent(action);
startActivity(intent);
} 系统设置action的介绍
android系统设置的action都是在android.provider.Settings下定义的,下面具体介绍一下,各个设置项的意义:
// Show settings for accessibility modules.辅助功能:例如字幕、自动旋转屏幕、按电源键结束通话等。
android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS;// Show add account screen for creating a new account。添加帐户:主要是电子邮件账户android.provider.Settings.ACTION_ADD_ACCOUNT// Show settings to allow entering/exiting airplane// mode。无线和网络:主要是运营商选择相关android.provider.Settings.ACTION_AIRPLANE_MODE_SETTINGS;// Show settings to allow configuration of APNs.APN的相关设置。android.provider.Settings.ACTION_APN_SETTINGS;// Show settings to allow configuration of application// development-related settings。开发者选项:主要是调试相关设置。android.provider.Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS;// Show settings to allow configuration of application-related// settings。应用:可以查看已下载的应用,当前运行应用等,可以对应用进行卸载、强制停止、清除缓存等操作。android.provider.Settings.ACTION_APPLICATION_SETTINGS;// Show settings to allow configuration of Bluetooth.蓝牙:蓝牙的相关设置。android.provider.Settings.ACTION_BLUETOOTH_SETTINGS;// Show settings for selection of 2G/3G。移动网络设置:主要是网络类型、接入点、运营商、数据漫游等设置。android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS;// Show settings to allow configuration of date and// time。时间和日期:主要是时间和日期相关的设置项。android.provider.Settings.ACTION_DATE_SETTINGS;// Show general device information settings (serial number, software// version, phone number, etc.).手机状态:当前手机系统、型号、版本、更新等信息。android.provider.Settings.ACTION_DEVICE_INFO_SETTINGS;// Show settings to allow configuration of// display。显示:主要是屏幕显示相关,亮度、壁纸、字体大小等。android.provider.Settings.ACTION_DISPLAY_SETTINGS);// Show settings to configure input methods, in particular allowing the// user to enable input methods.语言和输入法:输入法的相关设置。android.provider.Settings.ACTION_INPUT_METHOD_SETTINGS;// Show settings to enable/disable input method subtypes.具体输入法的相关设置。android.provider.Settings.ACTION_INPUT_METHOD_SUBTYPE_SETTINGS;// Show settings for internal storage.存储设置:主要是内部存储的使用情况。android.provider.Settings.ACTION_INTERNAL_STORAGE_SETTINGS;// Show settings to allow configuration of locale.语言:系统语言设置。android.provider.Settings.ACTION_LOCALE_SETTINGS;// Show settings to allow configuration of current location// sources.位置信息:定位相关设置。android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS;// Show settings to manage all// applications.应用:可以查看管理全部的应用,当前运行应用等,可以对应用进行卸载、强制停止、清除缓存等操作。android.provider.Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS;// Show settings to manage installed// applications.应用:可以查看已下载的应用,当前运行应用等,可以对应用进行卸载、强制停止、清除缓存等操作。android.provider.Settings.ACTION_MANAGE_APPLICATIONS_SETTINGS;// Show settings for memory card storage.存储设置:主要是内部存储的使用情况。android.provider.Settings.ACTION_MEMORY_CARD_SETTINGS;// Show settings for selecting the network operator.可用网络:搜索可用的运营商网络。
android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS;
// Show NFC settings.NFC的相关设置。android.provider.Settings.ACTION_NFC_SETTINGS);// Show NFC Sharing settings.Android Beam: NFC数据分享设置。android.provider.Settings.ACTION_NFCSHARING_SETTINGS;// Show settings to allow configuration of privacy// options.备份和重置:数据的备份和恢复出厂设置。android.provider.Settings.ACTION_PRIVACY_SETTINGS;// Show settings to allow configuration of quick launch// shortcuts.快速启动:设置应用的快速启动方式。android.provider.Settings.ACTION_QUICK_LAUNCH_SETTINGS;// Show settings to allow configuration of security and location// privacy.安全:屏幕锁定方式、手机加密等安全设置项。android.provider.Settings.ACTION_SECURITY_SETTINGS;// Show system settings.设置:进入系统的设置页面,可以设置wlan、蓝牙、显示、存储、安全等。android.provider.Settings.ACTION_SETTINGS;// Show settings to allow configuration of sound and// volume。(提示音和通知声音的设置;定制系统可能会到情景模式下,同样可以设置声音。)android.provider.Settings.ACTION_SOUND_SETTINGS;// Show settings to allow configuration of sync settings.帐户:可以添加账户。android.provider.Settings.ACTION_SYNC_SETTINGS;// Show settings to manage the user input// dictionary.个人字典:可以添加字词,方便输入法中尽快识别自己想输入的内容。android.provider.Settings.ACTION_USER_DICTIONARY_SETTINGS;// Show settings to allow configuration of a static IP address for// Wi-Fi.IP设置:可以进行网络通知、网络连接相关设置,查看mac地址和ip地址。android.provider.Settings.ACTION_WIFI_IP_SETTINGS;// Show settings to allow configuration of Wi-Fi.WLAN:可以查看和设置wlan的连接。android.provider.Settings.ACTION_WIFI_SETTINGS;// Show settings to allow configuration of wireless controls such as// Wi-Fi, Bluetooth and Mobile networks.无线和网络:设置飞行模式、VPN等android.provider.Settings.ACTION_WIRELESS_SETTINGS;
以下两个action调用有些问题
// Show screen of details about a particular application。//不能使用的设置,调用会异常
android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS;
// Show settings for global search.(5.0版本是设置手机搜索,语音等,4.x的会异常退出)
android.provider.Settings.ACTION_SEARCH_SETTINGS;
0 0
- android应用调用系统相关设置的方法
- android应用调用系统相关设置的方法
- iOS应用内跳转系统设置相关界面的方法
- iOS应用内跳转系统设置相关界面的方法
- iOS应用内跳转系统设置相关界面的方法
- iOS应用内跳转系统设置相关界面的方法
- IOS应用内跳转系统设置相关界面的方法
- iOS应用内跳转系统设置相关界面的方法
- iOS应用内跳转系统设置相关界面的方法
- android 调用系统其他已经安装的应用的方法
- Android调用系统邮件类应用的正确实现方法
- Android调用系统邮件类应用的正确实现方法
- Android 通过应用设置系统日期和时间的方法
- Android 通过应用设置系统日期和时间的方法
- Android 通过应用设置系统日期和时间的方法
- Android 通过应用设置系统日期和时间的方法
- 调用Android硬件服务相关的方法
- android 调用系统设置
- ivy extends--ivy间的依赖
- 高通8X25Q wifi BT 调试文档
- Unity3D游戏开发之详解 Animation类和Animator类
- Leetcode NO.66 Plus One
- Java—传统线程互斥技术synchronized
- android应用调用系统相关设置的方法
- 算法相关概述
- Jenkis 增加参数构建
- Angular+SpringMVC+MongoDB集成单页面应用
- css知多少(7)——盒子模型
- 机器学习笔记(二)
- mac--强制清理废纸篓
- ASP.NET 请求筛选模块被配置为拒绝包含双重转义序列的请求。HTTP 错误 404.11 - Not Found
- add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.