????? NewsGroup
OK. I'm guessing here from my 2-day observation on this case.

[First of All, this is the good reading. May not relate to this case]
http://developer.android.com/resources/articles/avoiding-memory-leaks.html

[What I did]
- In my case is about those global bitmap. (I cache my own (image) view).
- Manually free bitmap to assist Garbage Collection activity. 
I have not got to the bottom of this item. But the symptom seems to go away.


Best Regards,
Solution 9420


[My code is like these]

private Bitmap   bp=null;

void main() {
..
..
}

onOrientationChage() {

if( bp != null) 
    bp.recycle(); //Delete any references to this bitmap, mark as "NotUsed"

bp = buildNewViewCache();

}

Bitmap buildNewViewCache() {

    Bitmap  newAllocatedBP = new bitMap(.....);

    return newAllocatedBP;
}

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

Reply via email to