【问题标题】:Go inside of settings on button press按下按钮进入设置
【发布时间】:2014-07-26 05:10:05
【问题描述】:

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

按钮按下示例直接显示 VPN 设置或网络共享和便携式热点设置。

【问题讨论】:

标签: android-activity android-widget android


【解决方案1】:

尝试这种方式在 4.0.4 中工作,未在其他版本中测试

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

【讨论】:

  • thanx @Simple Plan,我试试这个。
猜你喜欢
  • 2016-03-27
  • 1970-01-01
  • 2021-11-29
  • 1970-01-01
  • 2014-07-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-01-14
相关资源
最近更新 更多