Android 打开网络设置页面
16lz
2021-01-23
Intent intent=null; //判断手机系统的版本 即API大于10 就是3.0或以上版本 if(android.os.Build.VERSION.SDK_INT>10){ intent = new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS); }else{ intent = new Intent(); ComponentName component = new ComponentName("com.android.settings","com.android.settings.WirelessSettings"); intent.setComponent(component); intent.setAction("android.intent.action.VIEW"); } startActivity(intent);
更多相关文章
- Android启动系统自带的程序组件
- android调用系统摄像头拍照图片和视频
- IMX6Q核心板Android系统编译笔记
- android 调用android系统的对话框控件
- Android自用-----系统自带app与用户app
- 显示Android当前可用系统内存方法
- Android 版本更新下载自动安装APK,并解决Android6.0,7.0安装失败
- 版本更新简要