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