摘要:
在Activit获取wifi状态获取WIFI的开关状态WifiManager wifiMgr = (WifiManager) this.getSystemService(WIFI_SERVICE);int stat = wifiMgr.getWifiState(),获取WIFI的连接状态ConnectivityManager conMan = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);State wifi = conMan.getNetworkInfo(ConnectivityManage 阅读全文