How to convert a Bitmap to Drawable in android?

Farha Ansari picture Farha Ansari · Mar 10, 2010 · Viewed 355.3k times · Source

How can I convert a Bitmap image to Drawable ?

Answer

Manoj picture Manoj · Dec 30, 2010

Try this it converts a Bitmap type image to Drawable

Drawable d = new BitmapDrawable(getResources(), bitmap);