Question

What is the difference between WifiConfiguration.Status = CURRENT and ENABLED? I can figure for DISABLED but the difference between CURRENT and ENABLED is not obvious to me.

Also, for a given connected network, 4.0.3 doesn't give me the save status as 4.0.4 and 4.2.2 give me. The former gives me ENABLED while the later give me CURRENT. Someone knows why?

Thanks!

Was it helpful?

Solution

From the Javadoc for the Status class:

/** this is the network we are currently connected to */
public static final int CURRENT = 0;

/** supplicant will not attempt to use this network */
public static final int DISABLED = 1;

/** supplicant will consider this network available for association */
public static final int ENABLED = 2;

So if 4.0.3 isn't returning CURRENT for the currently connected network, that seems likely to be a bug that was fixed in 4.0.4.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top