On Thu, Aug 25, 2011 at 6:23 AM, Shruthi Varma
<[email protected]> wrote:
> In my application, I need to toggle on the GPS programatically.

If by "toggle on" you mean "enable", this is not allowed, for obvious
privacy reasons.

> This question was asked many times, and the answer is in Android, you
> can programmatically turn the Wifi on or off, but not the GPS.

Correct.

> But many market applications can turn the GPS on or off programatically.

They exploit security holes in the OS. Those holes have been closed in
newer versions of Android.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Oslo: http://bit.ly/fjBo24

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to