Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { /** * recycle bitmap * * @param bitmap */ public static void recycle(Bitmap bitmap) { if (null == bitmap || bitmap.isRecycled()) { return; } bitmap.recycle(); bitmap = null; } }