I am using a simplest code to set wallpaper
:
Bitmap bmap2 = BitmapFactory.decodeStream(getResources().openRawResource(R.drawable.a));
getApplicationContext().setWallpaper(bmap2);
And the problem occur when image size is bigger than screen size. I can see only the part of input picture.
I tried resizing methods like createScaledBitmap
and it works, but not like I want.
createScaledBitmap
is resizing bitmap, but not size of picture, just resolution (just mess up the quality of picture, not picture size loaded to phone as wallpaper).
Does anyone know how to scale down the size of image, not a resolution?
EDIT:
Few screens:
Images from menu, before scale and after scale:
http://zapodaj.net/14097596e4251.png.html
So as you can see there is only scaled resolution, not size of picture.
Any ideas??