I would like to set a certain Drawable as the device\'s wallpaper, but all wallpaper functions accept Bitmaps only. I cannot use WallpaperMan
Drawable
Bitmap
WallpaperMan
if you are using kotlin the use below code. it'll work
// for using image path
val image = Drawable.createFromPath(path) val bitmap = (image as BitmapDrawable).bitmap