Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; public class Main { public static void recycle(Bitmap bitmap) { if (null == bitmap || bitmap.isRecycled()) { return; } bitmap.recycle(); } }