Reputation: 41
In Android, is there a way to programatically disable the WiFi channel scan? Looking at WiFiManager I did not see anything short of disabling WiFi, but I'd like to just disable the channel scans.
Upvotes: 4
Views: 2247
Reputation: 365
Wifi channel scan can't be disabled but in my case I unreigistered the receiver which solved my problem.
Upvotes: 1
Reputation: 3880
You can´t disable Wifi channel scan because this is a default system behavior (on every ~30 seconds Android check wifi channels).
One thing you can do is force to connect in any Wifi channel, so Android will no longer try to scan another channel.
Upvotes: 2
Reputation: 106
Wifi cannot disabled programatically but you can always prompt the user to disable with an intent to the wifi settings.
startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK));
Upvotes: 1