Tuesday, 19 June 2012

How to explicitly free memory in android OR Release unwanted memory in Android?


public void freeMemory(){
    System.runFinalization();
    Runtime.getRuntime().gc();
    System.gc();
}

Visit http://www.coderzheaven.com/2012/04/24/explicitly-free-memory-android-release-unwanted-memory-android/ for more information.

No comments:

Post a Comment