The old one will stay around, and continue being called.  You should remove
the old listener.

On Thu, Jan 6, 2011 at 6:13 PM, [email protected] <[email protected]
> wrote:

> Quick question, kind of java related I think, too. If you have a
> locationlistener mListener, and install it with "*
> requestLocationUpdates". *Lets say you assign a new LocationListener to
> mListener and install it again, is the previous one going to go away
> (garbage collected)? In C I would just delete one and allocate a new one.
> What's the best way in java+android?
>
>
>

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