Java tutorial
//package com.java2s; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; public class Main { /** * bitmap to drawable * @param res * @param bitmap * @return */ public static Drawable bitmapToDrawable(Resources res, Bitmap bitmap) { Drawable drawable = new BitmapDrawable(res, bitmap); return drawable; } }