0

Currently iam using this piece of code to get width and height wallpaper WallpaperManager wpm = WallpaperManager.getInstance(this);

        float minH =  wpm.getDesiredMinimumHeight();
        float minW =  wpm.getDesiredMinimumWidth(); 

iam unable to set the image correctly.

Amkhan
  • 340
  • 1
  • 3
  • 12
  • 1
    What exactly is the question? It seems you have the screen size (which the title suggests you're searching) – Hubert Grzeskowiak May 17 '16 at 10:08
  • I suggest you start using **dp**s and let Android do the scaling as needed. Possibly, use 9 patches, Drawables and / or VectorDrawables if you wnat to prevent OutOfMemory Exceptions –  May 17 '16 at 10:12

0 Answers0