1

I am using WallpaperManager to set an image as wallpaper.

The problem is that the image is automatically enlarged and set ( ie the entire image doesnt appear on screen).

I have tried

  • setting very small images,
  • also have tried scaling down images and setting them, but none of them works.

It seems the image is scaled and set.

Is there any way to resolve this??

Vikalp Patel
  • 10,669
  • 6
  • 61
  • 96
user2041902
  • 593
  • 1
  • 6
  • 21
  • 1
    Can you post some code ? – GrIsHu Feb 14 '13 at 06:49
  • There is no error or exception in the code. You can look at the output in http://www.edumobile.org/android/android-beginner-tutorials/setting-an-image-as-a-wallpaper/ I am getting that output but as you can see the wallpaper set is not same as the image. The whole image is not there in the wallpaper it gets cropped and enlarged, whereas I want the full image to be set as the wallpaper – user2041902 Feb 14 '13 at 09:18

1 Answers1

0

You can use createScaledBitmap to scale your images.

Q8yDev
  • 395
  • 1
  • 3
  • 7