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