Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; import android.os.Build; public class Main { /** * recycle a bitmap * @param aBitmap bitmap */ public static void recycleBitmap(Bitmap aBitmap) { if (aBitmap != null) { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) { aBitmap.recycle(); } } } }