Android调用系统自带的设置界面

Android有很多系统自带的设置界面,如设置声音,设置网络等。

在开发中可以调用这些系统自带的设置界面。

点击以下列表中的选项,就可以调出相应的系统自带的设置界面。

如点击“无线和网络设置”,可以调出以下设置界面:

实现的代码如下:

	// 无线和网络设置
	public void config_wire(){
		
		Intent intent = new Intent("/");
		ComponentName cm = new ComponentName("com.android.settings",
				"com.android.settings.WirelessSettings");
		intent.setComponent(cm);
		intent.setAction("android.intent.action.View");
		this.startActivityForResult(intent, 0);
		
	}

其他设置界面对应的参数如下:

手机信息:com.android.settings.RadioInfo

使用情况统计:com.android.settings.UsageStats

设置声音:com.android.settings.SoundSettings

...

还有很多,就不一一列出了。

原文地址:https://www.cnblogs.com/mstk/p/3425088.html