Setting Android wallpaper w/ scaled images for different resolutions/screens
<p>Im am trying to set the wallpaper where it scales correctly for all phones.  Right now I have motorola droid size wallpapers packaged with my app, 960x854, and it works fine.  The problem is that I ran my apk on a mytouch and the wallpaper was zoomed in big-time.</p>

<p>I was told to use "Bitmap.createScaledBitmap()" so I got some code together to do this:</p>

<pre><code>if (position == 0) {
    try {

        Bitmap img_0 = BitmapFactory.decodeResource(getResources(), R.drawable.a_0);
        Bitmap resized;
        Display display = getWindowManager().getDefaultDisplay();
        int newHeight = display.getHeight();
        int newWidth = display.getWidth();
        resized = Bitmap.createScaledBitmap(img_0, (newWidth), (newHeight), true);
        WallpaperManager wm = WallpaperManager.getInstance(GalleryExample.this);
        wm.setBitmap(resized);

    } catch (IOException e) {

        e.printStackTrace();
    }
}
</code></pre>

<p>The problem is that I cant get it to scale as this method isnt working that well where its similar to where it was before, not much has changed, the image still seems zoomed in on the mytouch phone. </p>

<p>Is there a method to scale properly? I get the feeling that Android is messing with the picture itself when the wallpapermanager is called.</p>
