On Tue, Oct 29, 2013 at 3:00 AM, Amit Mangal <[email protected]>wrote:

> do i need to use call clear method of array list on on destroy method of
> activity or it will automatically clear when my activity is destroying.
>

If you don't have any external references to the array list or activity,
then it should be cleared with the activity.


> i want to avaoid memory leaks in my app.
>

I would suggest you earn to use the tools at your disposal:
http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html

Posting here for every doubt does not seem productive :)

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to