Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { private static void recoverBitmap(Bitmap bm) { if (bm != null && !bm.isRecycled()) { bm.recycle(); } bm = null; } }