Hi,

There's a change in Android 3.2 that made the following code stop to
work as expected:

      WindowManager wm =
(WindowManager)instance.getContext().getSystemService(Context.WINDOW_SERVICE);
      Display display = wm.getDefaultDisplay();
      int screenHeight = display.getHeight();

Prior to 3.2, the width/height informed included the task bar. Then,
in 3.2, it EXCLUDES THE TASKBAR.

Its mandatory for my application to know in advance the value of the
screen WITHOUT THE TASKBAR.

May i ask PLEASE to Android developers to add an API in a future
version of Android to get the size as before?

Currently, i have to check if its android 3.2 and force a screen
rotation, get the size in both directions, then cache this value.

Thanks

    guich

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to