How to Build a Wallpaper Android App
1.Open Android Studio.
2.Click on Text.
3.Change Relative Layout to Linear Layout and the orientation as Vertical.
4.Add the Button,
Give the id and other things.
5.Add Image View, match_parent and id as ‘img’
6.Paste the drawable image file on the drawable folder
7.Go to the Main activity. Show the Button and the image view.
8.Show the image view and button in the Java code. Add btn.setOnClickListener and OnClickListener method.
9.Add Wallpaper manager. Give a variable name. Here it is given as ‘wallmgr’
10.Capture the image into the wallpaper by wallmgr.SetResource (R.drawable/wall1) [the image name as set here]. In case you get an error, add a ‘+’ before R.drawable
11.Put catch (IOException E)
12.Go to AndroidManifest.xml
13.Give the permission to access the wallpaper, then SET_WALLPAPER
14.Run it on the Android device. Go to the Wallpaper app and tap on the Set As button.