What phone are you doing this on?  It works fine on all of my phones.

Also note the desired image size is based on what the current launcher app
expects.  Something else could be installed that sets it to something
different.  The platform just reports whatever was last requested by an app.

On Sun, Dec 19, 2010 at 1:17 AM, Neilz <[email protected]> wrote:

> Ok, I think the problem I have here is not my code after all...
>
> I tried simply setting the wallpaper from the phone options, picking
> an image from the gallery. Exactly the same thing happens as when I do
> it from the code... it picks a central part of the image and stretches
> it.
>
> I think the problem seems to be that it wants a rectangular image
> (wider than it is high) to fit the multiple desktops. But the images
> that I have in my app are all tall. But, if it wants an image that
> size, then why does the WallpaperManager suggest an image size which
> is basically the same results as the DisplayMetrics dimensions? (i.e.
> 240 * 320, 320 * 480 etc). That clearly isn't the size that it wants.
>
> Seriously, try setting a wallpaper from your own image gallery, and
> you'll see what I mean.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to