I just read the article 'Avoiding memory leaks' in android blog
written by Romain Guy.
http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html
According to the article, the below code has memory leak when rotating
because the static drawable has a reference to Activity.
On 4/10/2010 10:38 AM, NoraBora wrote:
I understand sBackground has a reference to TextView, and the TextView
has a reference to Activity.
I know when a device is rotated, Activity is destroyed and created
again.
but I think when a new Activity is created, sBackground setCallback a
new TextView
2 matches
Mail list logo