Reputation: 303
I have developed an app which have few images in it. I have placed them in drawable folder. I want to give an option for the users to choose anyone of those images and make it as device's wallpaper. How can I do that? Should the user store it first to gallery and then make it as wallpaper?
Upvotes: 1
Views: 670
Reputation: 1046
I hope this tutorial will help you: http://mobile-development-tutorial.blogspot.ru/2012/12/android-set-wallpaper-programmatically.html
Upvotes: 1
Reputation: 89
You should let the users choose, and their decision should be placed in a variable. So if users choose #1, the wallpaper1 will be in the background of the xml. If users choose #3, wallpaper3 will be in the background of the xml. So you define 'backgroundwallpaper' in your xml, and define that by using a variable.
Upvotes: 0