开发者

how to stop wifi scan on android?

开发者 https://www.devze.com 2023-01-31 20:17 出处:网络
Is it possible to stop wifi scan started with wifiMgr.startSc开发者_Python百科an() ? I browse some posts and read about using thread to give intervals between each result delivery. But if I want to co

Is it possible to stop wifi scan started with wifiMgr.startSc开发者_Python百科an() ? I browse some posts and read about using thread to give intervals between each result delivery. But if I want to completely stop the process, how can I achieve it?


I found the answer a few days ago. Simply unregister the receiver. I don't know if it is the best way to go, but it works.


I have found abortBroadcast(); to work. The strange thing is that I did not need to stop it initially as it only ran once each time I called startscan.

0

精彩评论

暂无评论...
验证码 换一张
取 消