user2957249
user2957249

Reputation: 41

Android - How to disable WiFi channel scan programatically?

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

Answers (3)

Atul Panda
Atul Panda

Reputation: 365

Wifi channel scan can't be disabled but in my case I unreigistered the receiver which solved my problem.

Upvotes: 1

danilodeveloper
danilodeveloper

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

RMBL21
RMBL21

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

Related Questions