Android Wifi State Check isWifiEnabled(WifiManager wifi)

Here you can find the source of isWifiEnabled(WifiManager wifi)

Description

is Wifi Enabled

Declaration

public static boolean isWifiEnabled(WifiManager wifi) 

Method Source Code

//package com.java2s;

import android.net.wifi.WifiManager;

public class Main {
    public static boolean isWifiEnabled(WifiManager wifi) {
        return wifi.getWifiState() == WifiManager.WIFI_STATE_ENABLED;
    }/* www.j a  v a  2 s  .  c o  m*/
}

Related

  1. isConnectedWifi(Context context)
  2. isWifiAvailable(Context context)
  3. isWifiDisabled(WifiManager wifi)
  4. isWifiDisabled(WifiManager wifi)
  5. isWifiEnabled(WifiManager wifi)
  6. isWifiEnabledOrEnabling(WifiManager wifi)
  7. isWifiEnabledOrEnabling(WifiManager wifi)
  8. isWIFIAvailable(Context context)
  9. isWifiOnline(Context context)