I am writing an app that allows a user to set the phone's wallpaper from a list of pictures. By default it scrolls across the multiple home screens. I want the wallpaper on the home screen to be a static non-scrolling image.
What can I do programmatically to achieve this? Is this even possible?
I am using wallpaperManager.setResource(...);
to set the wallpaper.
I've also tried wallpaperManager.setWallpaperOffsetSteps(0,0);
but that did not solve my problem.
I'v fulfilled this feature by:
final WallpaperManager wpm = (WallpaperManager)getSystemService(
Context.WALLPAPER_SERVICE);
wpm.setWallpaperOffsetSteps(1, 1);
wpm.suggestDesiredDimensions(SCREEN_WIDTH, SCREEN_HEIGHT);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With