Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static final void recycle(Bitmap bitmap) { System.out.println("==recycle=="); if (bitmap != null && !bitmap.isRecycled()) { System.out.println("--true"); bitmap.recycle(); bitmap = null; System.gc(); } } }