On Thu, Jan 7, 2010 at 3:42 PM, Yousuf Faheem <[email protected]> wrote: > Hi, > > I am writting a code which has to turn gps on when its needed and turn gps > off when its not needed. This is different from enabling or disabling the > gps. Is there any api that is used for this purpose. >
How is it different? Are you looking for some callback to tell you whether the GPS is currently in use? When the GPS is not needed, the last known location data is stored away, and it is automatically turned off. You'll notice the little satellite icon disappears from your tray when this happens.
-- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

