9/15/2015

Google I/O 2011:: Memory management for Android Apps

It's a bit late to see this.
But it's really a good vedio


Should add more notes here.


GC_CONCURRENT == normal GC behaviour to prevent heap
GC_FOR_MALLOC == GC_CONCURRENT didn't completed and need to allocate more memory for GC
GC_EXTERNAL_ALLOC = wont appear after honeycomb
GC_HPROF_DUMP_HEAP
GC_EXPLICIT

But actually GC wont prevent memory leaks.
Leak: ref to an unused object preventing GC
and it occurs often at the ref to Activity(context), like drawable, icons, ..etc