On Thu, Sep 9, 2010 at 2:30 AM, Federico Paolinelli <fedep...@gmail.com> wrote:
> What I need to know (and probably I wasn't so clear) is:
> Will the locationmanager fire the pending intents even if the caller
> of requestLocationUpdate was killed?

AFAIK, it should, as that is typically how the PendingIntent-based
methods work elsewhere in Android.

> 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.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
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

Reply via email to