WifiConfiguration状态之间的差异

WifiConfiguration状态之间的差异

本文介绍了WifiConfiguration状态之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是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状态之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 07:15