Android Scan for Wifi networks

前端 未结 5 708
北荒
北荒 2021-02-02 04:33

I\'m trying to scan for wireless networks and found this helpful source on the net. Unfortunately it\'s not working and I have no idea why. My problem is that I can\'t wait 10 m

5条回答
  •  一向
    一向 (楼主)
    2021-02-02 05:09

    Ok, I found the mistake.

    It was the loop. It looks like the onReceive function is never called as the activity run this loop only. Looks like the program has to reach the end of the function to execute other function like OnReceive ...

    Thanks for the help any way. It helped me to improve it a bit :)

提交回复
热议问题