I my android app, i change the wallpaer/desktop image. How do i get the size of screen of the phone?
Note :I donot need the size of current activity but the screen.
Display display = getWindowManager().getDefaultDisplay();
int width = display.getWidth()
int height = display.getHeight()
Does the above code return the size of screen or current activity?Also display.getHeight() and display.getWidth methods are depreciated.