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
You should write in BroadcastReceiver like this:
BroadcastReceiver
Then startScan and do like this
if (WifiManager.SCAN_RESULTS_AVAILABLE_ACTION.equals(action)) { super.onReceive(context, intent); //Scan is ok, just need few seconds! }