Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable WIFI Auto-connect in Android

Tags:

Android saves WIFI details into WifiConfiguration class. When WIFI is ON and SSID, Pass-key details matches with WIFI network then Android auto connect with the particular WIFI Network. How to disable that auto-connect feature ? purpose behind asking this question is, I have two configured networks (already saved) and i want to connect WIFI on the button click event, but auto connect feature of android connects with the WIFI itself.

like image 774
Nimit Avatar asked Oct 22 '12 12:10

Nimit


People also ask

How do I turn off auto Wi-Fi connect?

On Android To stop your Android device from auto-connecting to open networks: Open the Android settings and go to Network & Internet. Select Wi-Fi > Wi-Fi preferences. Turn off the Connect to public networks toggle switch.


2 Answers

No. You cannot do this. The OS keeps track of the networks which are configured in the device. It tries to find those networks and based on the priority driven method, chooses an appropriate network and connects to it as soon as WiFi is turned on. As Arpit suggested, you can forget those networks and OS will remove it's configuration from memory.

like image 51
Vikram Gupta Avatar answered Oct 08 '22 17:10

Vikram Gupta


While native Android does not have this option, the MIUI ROM , does provide it. The ROM has a setting that can toggle auto connection of remembered networks.

The official MIUI ROM is available here and the unofficial international version can be found here.

like image 43
Saaru Lindestøkke Avatar answered Oct 08 '22 16:10

Saaru Lindestøkke