alexking

学习笔记

导航

2011年12月17日 #

android 中检查设备是否有网络可用

摘要: public boolean checkNetWorkStatus() { boolean netSataus = false; ConnectivityManager cwjManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); cwjManager.getActiveNetworkInfo(); if (cwjManager.getActiveNetworkInfo() != null)... 阅读全文

posted @ 2011-12-17 11:34 alexking 阅读(214) 评论(0) 推荐(0) 编辑