[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

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

2009-03-09 Thread Kevin AN
to maxim yukin' site On Mar 9, 4:27 am, Rudi rudolf.hor...@gmail.com 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

[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 any...@gmail.com wrote: to maxim yukin' site On Mar 9, 4:27 am, Rudi rudolf.hor...@gmail.com wrote: Anybody nows a code/sample how to turn ON/OFF the GPS location provider *corretcly*. I have found the