Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; public class Main { @SuppressWarnings("deprecation") public static Drawable convertBitmap2Drawable(Bitmap bitmap) { if (null == bitmap) return null; BitmapDrawable bd = new BitmapDrawable(bitmap); return bd; } }