2011.04.04 17:04
           

 
                WifiManager wManager = (WifiManager)context.getSystemService(Activity.WIFI_SERVICE);

if(wManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED || 
wManager.getWifiState() == WifiManager.WIFI_STATE_ENABLING )
{
wManager.setWifiEnabled(false);
}
else
{
wManager.setWifiEnabled(true);
}
신고
Posted by 구름같은사나이

티스토리 툴바