Rajendar
Rajendar

Reputation: 209

How to keep my wifi always turn on?

While disconnectiong to the selected wifi AP, my WiFi is turned off.I want to keep my WiFi always turn on while disconnecting to the the selected AccessPoint and in the meantime WiFi is n't trying to connect to other AP also.Iam using Android 1.5.Is there any solution for this?

Regards, Rajendar

Upvotes: 1

Views: 1528

Answers (1)

drawnonward
drawnonward

Reputation: 53689

mWifi = ((WifiManager)getSystemService( WIFI_SERVICE )).createWifiLock( WifiManager.WIFI_MODE_FULL , "yourtag" );
mWifi.acquire();
// when done
mWifi.release();

Upvotes: 2

Related Questions