Differences between WifiConfiguration status

What is the difference between WifiConfiguration.Status = CURRENT and ENABLED? I can count on 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 save status like 4.0.4 and 4.2.2. The first one gives me INTEREST, and later give me CURRENT. Does anyone know why?



source to share

1 answer

From the Javadoc for the class Status


/** 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 doesn't return CURRENT

for the current network, it looks like this is a bug that was fixed in 4.0.4.



All Articles