tags:

views:

66

answers:

2

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.

Tried wallpaperManager.setWallpaperOffsetSteps(0,0); -- did not solve it.

Thanks in advance

A: 

This is controlled by the Launcher application. If you want a non-scrolling wallpaper, install a Launcher app that doesn't scroll the wallpaper :)

Romain Guy
A: 

If you want to put some effort into a solution, you could create a live wallpaper which displays a static, user-selectable image. Then your wallpaper could override the offset changes if that's what is desired. That's a lot of work, though, to stop the scrolling effect.

Alternatively, you could crop the image to the screen's size before setting it to wallpaper. That would stop the scrolling, but would break screen orientation changes.

Josh
Agree live wallpaper is too much. I tried setting a wallpaper sized to the fit the screen (e.g 480 x 854) on the Droid. The image is stretched (960 x 854) to fit across the 5 screens that u can scroll thru - is that what u were suggesting? Not sure. Thanks
bims
Oh, I didn't realize that the cropped image would be auto-stretched to fit the screen-switching model. That IS what I was suggesting. You probably didn't want this solution either, though, because changing orientation would have screwed up your image dimensions. Looks like Romain had the right of it (as usual).
Josh