Unless you are somehow keeping a reference to a Context via a static
field, resources are automatically discarded on orientation change.
You can read the following articles to help you:

http://www.curious-creature.org/2009/02/07/track-memory-allocations-on-android/
http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/

On Fri, Dec 4, 2009 at 11:31 PM, venkat vakiti <[email protected]> wrote:
> can someone tell me avoid android memory leak.how to remove resources
> when the screen orientation changes?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Android Discuss" 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-discuss?hl=en.
>
>
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--

You received this message because you are subscribed to the Google Groups 
"Android Discuss" 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-discuss?hl=en.


Reply via email to