core/src/in/srain/cube/image/ImageProvider.java
public BitmapDrawable createBitmapDrawable(Resources resources, Bitmap bitmap) {
        if (bitmap == null) {
            return null;
        }
        BitmapDrawable drawable = null;
        if (bitmap != null) {
            if (Version.hasHoneycomb()) {
                // Running on Honeycomb or newer, so wrap in a standard BitmapDrawable
                drawable = new BitmapDrawable(resources, bitmap);
            } else {
                // Running on Gingerbread or older, so wrap in a RecyclingBitmapDrawable
                // which will recycle automatically
                drawable = new RecyclingBitmapDrawable(resources, bitmap);
            }
        }
        return drawable;
    }
public BitmapDrawable createBitmapDrawable(Resources resources, Bitmap bitmap) {
        if (bitmap == null) {
            return null;
        }
        BitmapDrawable drawable = null;
        if (bitmap != null) {
            if (Version.hasHoneycomb()) {
                // Running on Honeycomb or newer, so wrap in a standard BitmapDrawable
                drawable = new BitmapDrawable(resources, bitmap);
            } else {
                // Running on Gingerbread or older, so wrap in a RecyclingBitmapDrawable
                // which will recycle automatically
                drawable = new RecyclingBitmapDrawable(resources, bitmap);
            }
        }
        return drawable;
    }
public BitmapDrawable createBitmapDrawable ( Resources resources , Bitmap bitmap ) { if ( bitmap == null ) { return null ; } BitmapDrawable drawable = null ; if ( bitmap != null ) { if ( Version . hasHoneycomb ( ) ) { // Running on Honeycomb or newer, so wrap in a standard BitmapDrawable drawable = new BitmapDrawable ( resources , bitmap ) ; } else { // Running on Gingerbread or older, so wrap in a RecyclingBitmapDrawable // which will recycle automatically drawable = new RecyclingBitmapDrawable ( resources , bitmap ) ; } } return drawable ; }
Create a BitmapDrawable which can be managed in ImageProvider

@param resources
@param bitmap
@return
Create a BitmapDrawable which can be managed in ImageProvider