问题
I have a application that have a lot of images, and I want to programmatically do a random chanegs of images on my phone backgroind. Is it possible to change wallpaper on android ?
回答1:
Use a WallpaperManager.
Also, you'll have to include this permission:
<uses-permission android:name="android.permission.SET_WALLPAPER" />
来源:https://stackoverflow.com/questions/6190417/change-home-wallpaper