1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > android应用程序跳转到系统的各个设置页面

android应用程序跳转到系统的各个设置页面

时间:2020-05-04 12:15:20

相关推荐

android应用程序跳转到系统的各个设置页面

在android SDK文档中有这样一个类,android.provider.Settings类提供android系统各个页面的跳转常量: 使用实例例: startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS)),即可跳到android手机网络设置页面。如果要launch Mobile Networks Setting页面按如下方法:

Intent intent=new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);

ComponentName cName = new ComponentName(“com.android.phone”,”com.android.phone.Settings”);

intent.setComponent(cName);

startActivity(intent); 如果要进入Networks Operators页面按如下方法:

Intent intent = new Intent(Intent.ACTION_MAIN);

intent.setClassName(“com.android.phone”, “com.workSetting”);

startActivity(intent);

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。