07-19-2011 05:32 PM
Display.getWidth() and Display.getHeight() will get you the actual number of pixels.
Display.getHorizontalResolution(); and Display.getVerticalResolution() to get pixels per meter. Then by dividing appropriately you can find out the actual size.
01-28-2013 06:41 AM
Display.getHeight() and Display.getWidth() is slightly misleading.
As per JavaDocs:
Retrieves the total drawing height of the display
What this implies (I just discoved), is that if, for example, a soft keyboard is open, the values returned by those methods will be adjusted to reflect the space left for your app to do it's business.
So now my quesiton is, how can I reliably determine the full pixel width and height of the screen?