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 WeakReference .

: Public Final Zero Set Callback (Callback CB) {mCallback = cb; }

and:

  public final zero set callback (callback CB) {mCallback = new WeakReference & lt; Callback & gt; (CB); }  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -