Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final enum

NetworkInfo.State

extends Enum <E extends  Enum <E>>
java.lang.Object
   ↳ java.lang.Enum <E extends  java.lang.Enum <E>>
     ↳ android.net.NetworkInfo.State

Class Overview

Coarse-grained network state. This is probably what most applications should use, rather than DetailedState . The mapping between the two is as follows:

Detailed state Coarse-grained state
IDLE DISCONNECTED
SCANNING CONNECTING
CONNECTING CONNECTING
AUTHENTICATING CONNECTING
CONNECTED CONNECTED
DISCONNECTING DISCONNECTING
DISCONNECTED DISCONNECTED
UNAVAILABLE DISCONNECTED
FAILED DISCONNECTED

Summary

Enum Values
NetworkInfo.State   CONNECTED   
NetworkInfo.State   CONNECTING   
NetworkInfo.State   DISCONNECTED   
NetworkInfo.State   DISCONNECTING   
NetworkInfo.State   SUSPENDED   
NetworkInfo.State   UNKNOWN   
Public Methods
static NetworkInfo.State valueOf ( String name)
final static State[] values ()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final NetworkInfo.State CONNECTED

Added in API level 1

public static final NetworkInfo.State CONNECTING

Added in API level 1

public static final NetworkInfo.State DISCONNECTED

Added in API level 1

public static final NetworkInfo.State DISCONNECTING

Added in API level 1

public static final NetworkInfo.State SUSPENDED

Added in API level 1

public static final NetworkInfo.State UNKNOWN

Added in API level 1

Public Methods

public static NetworkInfo.State valueOf ( String name)

Added in API level 1

public static final State[] values ()

Added in API level 1