- 博客(3)
- 收藏
- 关注
原创 安卓测试网络是否连通
Runtime runtime = Runtime.getRuntime(); try { Process p = runtime.exec("ping -c 2 www.baidu.com"); int ret = p.waitFor(); Thread.sleep(1000); System.out.println("查询到的网络访问码是::" + ret); ...
2018-05-30 15:12:58 1059
原创 设置diaog.builder的透明度
AlertDialog.Builder builder=new AlertDialog.Builder(this); builder.setTitle("找回密码"); builder.setMessage("你的账号是:"+name+"\n你的密码是:"+string1); builder.setPositiveButton("取消",null); AlertDialog show = buil
2017-05-21 17:28:54 231
原创 欢迎使用CSDN-markdown编辑器
notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); //创建消息推送者 NotificationCompat.Builder builder=new NotificationCompat.Builde
2017-05-20 16:49:24 223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人