On Tue, Nov 22, 2011 at 1:30 AM, Siva Prakash <[email protected]> wrote:
> - Will it work though I close my application ?

Briefly, until Android gets rid of your process, AFAIK. This is bad
form -- do not leak a LocationListener.

> - Anyway for me to
>
> locationManager.removeUpdates ()
>
> when user close the application? Basically I want to handle application
> close event.

There is no "application close event". Please remove the updates in
onPause() or onStop() of your activity where you requested the
updates.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to