Code example for SupplicantState

Methods: equals

0
        Object service = getSystemService(WIFI_SERVICE);
        WifiManager manager = (WifiManager) service;
        WifiInfo info = manager.getConnectionInfo();
        if (info != null) {
            SupplicantState state = info.getSupplicantState();
            if (state.equals(SupplicantState.COMPLETED)) {
                return info;
            } 
        } 
        return null; 
    } 
 
    private byte[] getIpAddress() { 
        WifiInfo info = getConnectionInfo();
        if (info != null) {
            return toByteArray(info.getIpAddress());
        } 
        return null; 
    } 
 
    void startSweep() {