01-28-2013 06:49 AM
The JavaDoc for Display.getHeight() and Display.getWidth () states that:
Retrieves the total drawing height of the display. Retrieves the total drawing width of the display.
What this implies is that if on (for example a 9860) the soft keyboard is open, the value returned by getHeight() will be different from the value returned when the keyboard is NOT open.
SO how can I reliably get the real full pixel widht/height of a screen?
Solved! Go to Solution.
01-28-2013 09:47 AM
That is indeed what I went with - couldn't see any other way.
Bordering on "global variables", which we all know is evil
But oh well.
Whatever works, right?
Thanks for the help peter!
01-28-2013 10:48 AM
More like static variables than global variables.
The trick is if you allow rotation. In that circumstance, then you can actually detect rotation because of the change in the width. You can't, as you have found out, use a change in height.