I wonder should not be use System.gc() in android.
I searched the developer document:
Result:
public static void gc ()<
Invoking System.gc()
is not a guarantee of garbage collection actually being performed. It's more of a hint than anything else.
In Java programming in general it has been regarded as very bad practice to use this method call because using it implies some level of expectation that garbage collection then happens. In truth, when garbage collection occurs depends on many things and is best left to the container and run-time tuning (if required).
I'd say don't use System.gc()
in Android for all the same reasons.