Hi, Thanks, I was trying to do it programatically. But as you said the GPS is turn on/off automatically I dont have to switch it on/off. Now I will need to check whether GPS is on/off. will the Location manager be helpful for this or do I need to access a different set of apis.
Thanks & Regards, Yousuf Syed On Thu, Jan 7, 2010 at 10:59 AM, Sean Hodges <[email protected]>wrote: > 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]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > >
-- 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

