摘要:
WIFI 获取WIFI状态 WifiManager wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); if(wifiManager != null){ int wifiState = wifiManager.getWifiState(); } 附:Wifi状态有以下几种:(括号内为所对应的的int值) 1.wifiManager.WIFI_STATE_DISABLED (1) 2.wifiManager..WIFI_STATE_ENABLED (3) 3.w... 阅读全文