[android-developers] Re: Turning GPS ON/OFF

2009-03-09 Thread Kevin AN
to maxim yukin' site On Mar 9, 4:27 am, Rudi wrote: > Anybody nows a code/sample how to turn ON/OFF the GPS location > provider *corretcly*. I have found the System.Settings provider and > can set / change the corresponding setting, but it seems that the rest > of the system does not recgnize th

[android-developers] Re: Turning GPS ON/OFF

2009-03-09 Thread Neil
Use reflection to call LocationManager.updateProviders. On Mar 9, 11:00 am, Kevin AN wrote: > to maxim yukin' site > > On Mar 9, 4:27 am, Rudi wrote: > > > Anybody nows a code/sample how to turn ON/OFF the GPS location > > provider *corretcly*. I have found the System.Settings provider and > >

[android-developers] Re: Turning GPS ON/OFF

2009-03-09 Thread Edward Falk
On Mar 9, 1:20 pm, Rudi wrote: > What is the correct way of turning ON/OFF the GPS in Android. I've > found the System.Settings provider, and the LOCATION_PROVIDERS_ALLOWED > setting, but it seems that the rest of the system is not notified I had the exact same question myself. Browsing the s

[android-developers] Re: Turning GPS ON/OFF

2009-03-10 Thread Rudi
Actually I'm building from my own source tree and was calling updateManager. I was able to turn on the GPS successfully at the start of my activity Now the problem is that I want to restore the original state when my activity is paused. So I'm doing exactly the same thing in my onPause method