Wrong sizes returned from Display and DisplayMetrics in Android 3.2?

I used this code to get the full screen size in my application

Display display = getWindowManager().getDefaultDisplay();
int w = display.getWidth();
int h = display.getHeight();

On my tablet, while osVersion = 3.1, this code returned w = 1280 and h = 800.

Now, after upgrading to version 3.2, these values ​​are 1280x752 (when in landscape)

So, it seems that something has changed from 3.1 to 3.2 regarding this call: now it returns the available space, not the full screen size.

I tried using DisplayMetrics and widthPixels / heigthPixels, but they return the same values. Also using the new display.getSize (point p) return the same values

I also tried changing minSdkVersion and targetSdk in the manifest file to different values ​​without success.

How to return full screen size in Android os 3.2?

android os >= 1.6

+5
1

. 3.2 , 3.1 .

, , .

+3

All Articles