Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { /** * Clears all Bitmap data, that is, recycles the Bitmap and * triggers the garbage collection. * * @param bm */ public static void clearBitmap(Bitmap bm) { bm.recycle(); System.gc(); } }