Android:各项设置跳转

本篇文章只是简单的总结了跳转到各项设置需要用到的常量,需要了解详细内容请参考官方文档Setting

  • API级别在 Android 中的使用(下文会用到)
    如果在应用清单中进行了声明,
    元素的内容可能如下所示:
  
  
...

应用在 android:minSdkVersion中声明 API 级别的主要原因是,告知 Android 系统,应用不能安装在 API 级别更低的平台上,则它会在运行时崩溃。
下表列出了各 Android 平台版本支持的 API 级别。


Android:各项设置跳转_第1张图片

显示辅助功能模块的设置(API level 5)

startActivity(new Intent(ACTION_ACCESSIBILITY_SETTINGS));

显示添加新帐户的设置(API level 8)

startActivity(new Intent(ACTION_ADD_ACCOUNT));

显示设置飞行模式(API level 3)

startActivity(new Intent(ACTION_AIRPLANE_MODE_SETTINGS));

显示配置APN(API level 1)

startActivity(new Intent(ACTION_APN_SETTINGS));

显示有关特定应用程序的详细信息(API level 9)
com.miui.video小米视频的包名

startActivity(new Intent(ACTION_APPLICATION_DETAILS_SETTINGS,Uri.parse("package:" + "com.miui.video")));

跳转开发人员选项界面(API level 3)

startActivity(new Intent(ACTION_APPLICATION_DEVELOPMENT_SETTINGS));

跳转应用程序列表界面(API level 1)

startActivity(new Intent(ACTION_MANAGE_APPLICATIONS_SETTINGS));

显示节电器设置(API level 22)

startActivity(new Intent(ACTION_BATTERY_SAVER_SETTINGS));

显示配置蓝牙设置(API level 1)

startActivity(new Intent(ACTION_BLUETOOTH_SETTINGS));

显示视频字幕的设置(API level 19)

startActivity(new Intent(ACTION_CAPTIONING_SETTINGS));

显示开启无线显示(投射)(API level 21)

startActivity(new Intent(ACTION_CAST_SETTINGS));

显示移动网络设置(API level 3)

startActivity(new Intent(ACTION_DATA_ROAMING_SETTINGS));

显示设置日期和时间(API level 1)

startActivity(new Intent(ACTION_DATE_SETTINGS));

显示设备信息设置(序列号,软件版本,电话号码等)(API level 8)

startActivity(new Intent(ACTION_DEVICE_INFO_SETTINGS));

显示配置显示(亮度,字体,旋转屏幕等)(API level 1)

startActivity(new Intent(ACTION_DISPLAY_SETTINGS));

跳转存储设置界面【内部存储】(API level 3)

startActivity(new Intent(ACTION_INTERNAL_STORAGE_SETTINGS));

跳转位置服务界面(API level 1)

startActivity(new Intent(ACTION_LOCATION_SOURCE_SETTINGS));

显示NFC共享设置(API level 14)

startActivity(new Intent(ACTION_NFCSHARING_SETTINGS));

显示NFC设置(API level 16)

startActivity(new Intent(ACTION_NFC_SETTINGS));

显示设置备份和重置(API level 5)

startActivity(new Intent(ACTION_PRIVACY_SETTINGS));

显示全局搜索的设置(API level 8)

startActivity(new Intent(ACTION_SEARCH_SETTINGS));

显示系统设置(API level 1)

startActivity(new Intent(ACTION_SETTINGS));

显示设置声音和音量(API level 1)

startActivity(new Intent(ACTION_SOUND_SETTINGS));

显示配置Wi-Fi(API level 1)

startActivity(new Intent(ACTION_WIFI_SETTINGS));

你可能感兴趣的:(Android:各项设置跳转)