Friday, April 8, 2011

METHOD TO CHECK WIFI IS AVAILABLE OR NOT

 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();
 }

No comments:

Post a Comment