Android: how to convert a Drawable to Bitmap

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-06-14T07:46:35Z Indexed on 2010/06/14 7:52 UTC
Read the original article Hit count: 355

Filed under:
|
|
|

How can I 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 - I'm pre 2.1).
Also, my drawables are downloaded from the web and do not reside in R.drawable.

Thanks, Rob

© Stack Overflow or respective owner

Related posts about android

Related posts about bitmap