How to set image as wallpaper from the ImageView?
I have an activity in which there are two Buttons and an ImageView. One button is to take image from the Camera application of the phone and set it to the ImageView, and other Button is to set that image as the Home screen wallpaper so i want the code how to set this image from the ImageView to the wallpaper??????? Shajeel Afzal Step 1: Get the image attached to the ImageView. Setp 2: Set that image as Wallpaper. Step 3: Add permission in the AndroidManifest.xml to set wallpaper! For step 1 check This answer! imageView.buildDrawingCache(); Bitmap bmap = imageView.getDrawingCache(); For step 2: