摘要: 获取网络信息需要在AndroidManifest.xml文件中加入相应的权限。 1)判断是否有网络连接 复制代码 代码如下: public boolean isNetworkConnected(Context context) { if (context != null) { Connectivi... 阅读全文
posted @ 2015-07-30 18:31 manmanlu 阅读(562) 评论(0) 推荐(0) 编辑