I am an Android Developer

Friday, July 16, 2010

Getting dimension of Android device's screen

If you want the the display dimensions in pixels you can use:

Display display = getWindowManager().getDefaultDisplay();
int width = display.getWidth();
int height = display.getHeight();

No comments:

Post a Comment