List of usage examples for android.net.wifi SupplicantState equals
public boolean equals(Object obj)
From source file:org.peterbaldwin.vlcremote.app.PickServerActivity.java
private WifiInfo getConnectionInfo() { 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; }//from w ww. j a va2s .com } return null; }