Example usage for android.net.wifi SupplicantState toString

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

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:com.github.pwittchen.reactivewifi.app.MainActivity.java

private void startSupplicantSubscription() {
    supplicantSubscription = ReactiveWifi.observeSupplicantState(getApplicationContext())
            .subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread())
            .subscribe(new Action1<SupplicantState>() {
                @Override//from  www  . j  a  va  2s  .  c om
                public void call(SupplicantState supplicantState) {
                    Log.d("ReactiveWifi", "New supplicant state: " + supplicantState.toString());
                }
            });
}