>> In this way I would use the resources only after the event I am >> interested to (the change of the location) and could prevent me to >> keep a service always running with an active location listener. > > Bear in mind that the battery cost of the GPS radio being on will > swamp any other battery costs. If you use this, set up a nice long > minimum time between updates, and hope the device shuts down the GPS > radio periodically. I have not tried the PendingIntent version of > requestLocationUpdates(), and so I do not know if it keeps the radio > on all the time (like the listener version of > requestLocationUpdates()) or not. > >
Would this be true also for coarse locations? In any case, my purpose is to save some battery life. Another option could be periodically starting a service with an alarm, try to get the location and then shut down the location updates. In this way I would be pretty sure the radio is off when I don't need location updates. However, thanks again as always. Federico -- 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