ok, I thought that those widgets are ordinary android apps written by other smart gays, so that s why I was confused.
thanks On 17 Cze, 21:13, Mark Murphy <mmur...@commonsware.com> wrote: > On Thu, Jun 17, 2010 at 2:14 PM, kamiseq <kami...@gmail.com> wrote: > > once again, maybe it is too much sun over here :) > > > 1. gps is on (powered, whatever) when some app tries to obtain > > location info > > Right. > > > 2. gps is off if there is no app looking for location > > Correct. > > > 3. you then said that > > "For example, HTC Sense phones have a home screen feature that looks > > like an on/off switch for GPS. That, however, controls whether GPS is > > enabled." > > > so there is some other state that gps can be in and it can be > > controlled by application. > > Not an ordinary SDK application. Whether or not GPS is enabled is a > so-called "secure setting" (Settings.Secure), which cannot be modified > by ordinary SDK applications. > > > and yes I dont really understand the > > difference between on and enabled. > > You cannot turn GPS on if it is disabled. Think of enabled/disabled as > a lock, controlled by the user, which determines whether or not > applications even have an option to use GPS. > > -- > Mark Murphy > CommonsWare > mmur...@commonsware.comhttp://commonsware.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en