Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.util.Log; public class Main { private static final String LOGTAG = "AndroidUtil"; public static void recycleBmp(Bitmap bmp) { if (null != bmp && !bmp.isRecycled()) { bmp.recycle(); Log.d(LOGTAG, "=======recycleBmp ======"); } } }