2012年1月6日

摘要: (1)ConnectivityManager在Android中,ConnectivityManager类代表网络连接服务,它被用来监控网络连接状态,配置失效重连,并控制网络天线等。获取ConnectivityManager实例的方法是使用getSystemService,并指定Context.CONNECTIVITY_SERVICE作为参数,代码片段如下:String cserviceName = Context.CONNECTIVITY_SERVICE;ConnectivityManager cm = (ConnectivityManager) getSystemService(cservi 阅读全文
posted @ 2012-01-06 00:53 android开发实例 阅读(2352) 评论(0) 推荐(0) 编辑

导航