recycle bitmap - Android Graphics

Android examples for Graphics:Bitmap Recycle

Description

recycle bitmap

Demo Code


//package com.java2s;

import android.graphics.Bitmap;

public class Main {

    public static void recycleBitmap(Bitmap b) {
        if (b != null && !b.isRecycled()) {
            b.recycle();//from   ww w.  ja v a  2 s .c  o m
            b = null;
        }
    }
}

Related Tutorials