Code example for WifiInfo

Methods: getSupplicantState

0
    // public Object getGatewayIp() { 
    // return getIpFromIntSigned(dhcp.gateway); 
    // } 
 
    public SupplicantState getSupplicantState() {
        return info.getSupplicantState();
    } 
 
    public static boolean isConnected(Context ctxt) {
        NetworkInfo nfo = ((ConnectivityManager) ctxt
                .getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo();
        if (nfo != null) {
            return nfo.isConnected();
        } 
        return false; 
    } 
 
    public static long getUnsignedLongFromIp(String ip_addr) {
        String[] a = ip_addr.split("\\.");
        return (Integer.parseInt(a[0]) * 16777216 + Integer.parseInt(a[1]) * 65536
Connect your IDE to all the code out there  Get Codota for Java