How to convert a Drawable to a Bitmap?

I would like to set a certain Drawable as the device’s wallpaper, but all wallpaper functions accept Bitmaps only. I cannot use WallpaperManager because I’m pre 2.1. Also, my drawables are downloaded from the web and do not reside in R.drawable. 2Best Answer 21 This piece of code helps. Bitmap icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon_resource); Here … Read more