android - Unbinding drawables from view on onDestroy() -
I've read a lot about memory leaks in the last few days, and came in some interesting stuff. I saw a basic Android bitmap memory leak question (since 2011) and I was thinking that this is still the case. If I am using scenes that contain bitmaps in my activity (image view, text view ...), do I need to break my own designs to destroy the activity? Is it only in some cases or always?
It is no longer required as 4.0 because callback is now a : and: WeakReference .
Public Final Zero Set Callback (Callback CB) {mCallback = cb; }
public final zero set callback (callback CB) {mCallback = new WeakReference & lt; Callback & gt; (CB); }
Comments
Post a Comment