摘要:
[一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2013/01/10/2855096.html]1.注册一个广播接收器,监听网络状态1 private void Start()2 {3 IntentFilter filter = new IntentFilter();4 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);5 filter.addAction(WifiManager.WIFI_STATE... 阅读全文