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
1) drawable to Bitmap :
Bitmap mIcon = BitmapFactory.decodeResource(context.getResources(),R.drawable.icon); // mImageView.setImageBitmap(mIcon);
2) bitmap to Drawable :
Drawable mDrawable = new BitmapDrawable(getResources(), bitmap); // mImageView.setDrawable(mDrawable);