按下按钮进入设置

时间:2014-06-05 09:20:05

标签: android-activity android-widget android

我是Android应用程序开发的新手。我的问题是如何在按下应用程序按钮时在android设置中显示直接

按钮按下的示例直接显示VPN设置或Tethering&便携式热点设置。

1 个答案:

答案 0 :(得分:2)

尝试以4.0.4工作,未在其他版本中测试

Intent tetherSettings = new Intent();
tetherSettings.setClassName("com.android.settings", "com.android.settings.TetherSettings");
startActivity(tetherSettings);