Wednesday, September 8, 2010

[android-developers] LocationManager requestLocationUpdates and pending intents

Hi all, in order to save some battery, I was wondering what happens if
an activity registers a requestLocationUpdates and then the user (or
the os) puts it in background or kills it. Will the location manger
still be active and then will the pending intent still be fired?
In other words, will the location manager still be alive even if its
lancher does not exist anymore?
I'd really love this scenario because allows me to link an intent
service that handles the location updates without bothering of have
something always running waiting for good news from location.

Hope I am not too confused :-)

Thanks in advance,

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate