[android-developers] Re: Wifi lock with WIFI_MODE_SCAN_ONLY

2013-01-05 Thread shibin
i am facing the same issue. plz let me know if find answer On Monday, April 25, 2011 11:07:16 AM UTC+5:30, seema wrote: > > Hello All, > >Here is what I do to scan on wifi while connected to 3G. > > WifiLock wifiLock = > wifiService.createWifiLock(WifiManager.WIFI_MODE_SCAN_ONLY, >

Re: [android-developers] Re: Wifi lock with WIFI_MODE_SCAN_ONLY

2011-06-02 Thread Irfan Sheriff
Holding a scan wifilock ensures you get alteast scan capabilities and keeps wifi up - the system is still in control of whether wifi needs to connect when its turned on On Wed, Jun 1, 2011 at 10:38 PM, seema wrote: > Hello All, > > Here is what I do to scan on wifi while connected to 3

[android-developers] Re: Wifi lock with WIFI_MODE_SCAN_ONLY

2011-06-01 Thread seema
Hello All, Here is what I do to scan on wifi while connected to 3G. WifiLock wifiLock = wifiService.createWifiLock(WifiManager.WIFI_MODE_SCAN_ONLY, "MyLock"); if(!wifiLock.isHeld()){ wifiLock.acquire(); } if(wifiService.isWifiEnabled() == false){