摘要: 下面这个方法用于获取系统当前网络类型: 1: public static int getNetworkType(Context context) { 2: ConnectivityManager connectivity = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); 3: 4: if (connectivity != null) { 5: // 获取网络连接管理的对象 6: ... 阅读全文
posted @ 2012-11-21 00:22 野生奥特曼2号 阅读(877) 评论(0) 推荐(0) 编辑