title: Android app memory heap keeps growing
body: <p>I've been getting random ( out of memory ) crashes in my app so I started to analyze my heap. I noticed that if I go from Activity A to Activity B, the heap increases ( due to lazy loading many images ) from 27 MB to 35 MB. However, when I finish() the activity B to return to Activity A, the heap size keeps the same even with GC operation !! </p>
  
  <p>The annoying thing is that going to activity B one more time again increases the heap to 42 MB. I can do this as may times and the heap will only keep increasing. </p>
  
  <p>This is the lazy images loading library I am using: </p>
  
  <p>LazyList <a href="https://github.com/thest1/LazyList" rel="nofollow">https://github.com/thest1/LazyList</a>    </p>
  
  <p>These are screenshots of the Heap </p>
  
  <p>before: <a href="http://i.stack.imgur.com/7eTzm.png" rel="nofollow">http://i.stack.imgur.com/7eTzm.png</a></p>
  
  <p>after: <a href="http://i.stack.imgur.com/txeC6.png" rel="nofollow">http://i.stack.imgur.com/txeC6.png</a></p>
  
  <p>converted heap dump file is available upon request  </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>From my debugging, it seems the issue from the LazyList library but I am still not 100% sure. Here is reference to people commenting on the library : </p>
  
  <p><a href="https://github.com/thest1/LazyList/issues/20" rel="nofollow">https://github.com/thest1/LazyList/issues/20</a></p>