1

我们正在使用 Android API WifiManager.enableNetwork(netid, true) 在所需的 wifi 网络之间切换。切换工作正常,但禁用当前网络并连接到新网络大约需要 10-11 秒。为什么会出现这种延迟?是否有任何解决方法可以使其快速切换?

4

1 回答 1

2

AFAIK, there's no way to speed that process up. It's just the nature of WiFi -- connecting to a network can take a long time.

If your problem is that the enableNetwork call "freezes" your UI, just create another thread.

于 2012-04-18T16:45:10.227 回答