Re: [android-developers] Re: Programmatically switching GPS on/off (how do they do it??)
On Mon, Oct 4, 2010 at 6:26 PM, mrqzzz <marcus.oblak@gmail.com> wrote:
> Ok, so all i can do is show the settings dialog with
> Intent myIntent = new Intent( Settings.ACTION_SECURITY_SETTINGS ); ?
Yes.
> (Btw, the app is called "F r e e P o w e r W i d g e t")
That's interesting. The app's splash screen says it is just a
shortcut, along the lines of your code snippet above. In practice,
they do seem to have worked out how to enable/disable GPS, at least
based on a test on one device.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training...At Your Office: http://commonsware.com/training
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home