问题描述
什么是WifiConfiguration.Status =电流并启用之间的区别?我可以计算为禁止,但当前并启用之间的差异并不明显我的。
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.
此外,对于一个给定的连接的网络,4.0.3不给我保存的地位4.0.4和4.2.2给我。前者给我启用而后来给我CURRENT。有人知道这是为什么?
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?
谢谢!
推荐答案
从的Javadoc的状态
类:
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;
所以,如果4.0.3没有返回电流
为当前连接的网络,这似乎很可能是固定在4.0.4中的错误。
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.
这篇关于WifiConfiguration状态之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!