Android AlertDialog 提示设置网络
来源:互联网 发布:windows外观设置 编辑:程序博客网 时间:2024/05/30 20:08
/** * 提示设置网络 */public void setNetwork() {AlertDialog.Builder dialog = new Builder(context);dialog.setTitle("提示信息").setMessage("网络未连接,设置网络连接?");dialog.setPositiveButton("确定", new DialogInterface.OnClickListener() {public void onClick(DialogInterface dialog, int which) {Intent i = null;if (android.os.Build.VERSION.SDK_INT > 10) {i = new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS);} else {i = new Intent();ComponentName name = new ComponentName("com.android.settings","com.android.settings.WirelessSettings");i.setComponent(name);i.setAction("android.intent.action.VIEW");}// Intent i = new Intent(android.settings.WIRELESS_SETTINGS);startActivity(i);}});dialog.setNegativeButton("取消", new DialogInterface.OnClickListener() {public void onClick(DialogInterface dialog, int which) {dialog.dismiss();}}).show();}
0 0
- Android AlertDialog 提示设置网络
- Android使用设置AlertDialog(退出提示框)
- android弹出提示框AlertDialog的属性设置
- android alertdialog 相关设置
- android 提示对话框显示 AlertDialog
- Android—AlertDialog提示信息
- android AlertDialog透明度的设置
- Android 设置AlertDialog固定大小
- android alertdialog设置圆角
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- Android使用自定义AlertDialog(退出提示框)
- stagefright框架
- UNITY_MATRIX_IT_MV[Matrix]
- linux下串口的阻塞和非阻塞操作
- 【算法设计】虎溪校园导游系统
- TCP和UDP协议发送数据包的大小方面的知识介绍
- Android AlertDialog 提示设置网络
- 程序员面试宝典字符串中连续出现次数最多的子串
- xcode 开发中遇到的一些警告
- 10款鲜为人知的PHP框架
- 判断二叉排序树的后序遍历是否合法
- 菜鸟译文(二)——使用Java泛型构造模板方法模式
- 1004 zoj
- 计算机视觉、机器学习相关领域论文和源代码
- memset用法详解与实现