0

I am working with WallpaperManager now. Here is my code:

WallpaperManager wallpaperManager = WallpaperManager.getInstance(MainActivity.this);
wallpaperManager.setResource(R.drawable.some_image);

When I set this image as my wall paper, it is too large (a screenshot), but I think the size (720*1280) is correct.

Even if I open the page by browser, and long click on the image, and then select the option to set wall paper, it's still the wrong size. Is there any thing I can do to solve this problem?

Thank you.

iForests
  • 6,757
  • 10
  • 42
  • 75

1 Answers1

0

OK, I solved it finally. The image size must be 1280*1280, not 720*1280.

iForests
  • 6,757
  • 10
  • 42
  • 75