Android examples for android.net.wifi:Wifi State
is Wifi Open
import android.content.Context; import android.net.wifi.WifiManager; public class Main { public static boolean isWifiOpen(Context mContext) { WifiManager wm = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); return wm.isWifiEnabled(); }/* w ww . j a va2 s.c om*/ }