Example usage for android.net.wifi SupplicantState equals

List of usage examples for android.net.wifi SupplicantState equals

Introduction

In this page you can find the example usage for android.net.wifi SupplicantState equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

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;
}