The following method Return whether Wi-Fi is enabled or disabled.
True if enabled otherwise false.
public boolean checkWIFI()
{
WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE);
return wm.isWifiEnabled();
}
True if enabled otherwise false.
public boolean checkWIFI()
{
WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE);
return wm.isWifiEnabled();
}
No comments:
Post a Comment