【发布时间】:2017-01-09 07:56:49
【问题描述】:
现在我正在使用 android studio 2.2.2 工具。在我的应用中,如果没有互联网连接,那么我应该打开移动网络设置页面。
我正在使用此代码
Intent intent=new Intent(Settings.ACTION_SETTINGS);
ComponentName cName = new ComponentName("com.android.phone","com.android.phone.Settings");
intent.setComponent(cName);
一旦我在弹出窗口中单击设置,它会移动到移动网络,更多设置页面不会移动到设置页面。它应该移动到设置页面。
提前致谢。
【问题讨论】: