I work with several large drawings, and I do not know how to manage memory leaks. I tracked the heap size of my application and it does not stop growing (like allocated memory).
This is, in particular, the type "byte array (byte []), which grows and never decreases. (In the DDMS Heap view on Eclipse)
My application consists of a single action that uses fragments. These fragments display several large images. I tried to set drawables callback to null, set drawables to null, clear my volatile cache (which prevents my application from doing too much disk I / O) when I pop up a fragment, but the heap never decreases.
In fact, every time I call: Drawable.createFromResourceStream (context.getResources (), value, new FileInputStream (f), f.getName (), opts); the pile is growing. How can I free memory?
Thanks!
abecker
source share