I have a piece of code that load a very big image in memory. So it seemed like a reasonable thing to call
System.gc();
before loading the
If a memory allocation fails, a GC cycle is initiated and the allocation is tried again.