Also making the screen rotate like that is not a solution.  It won't work
for example on Galaxy Nexus where the nav bar changes the side it is on
when the screen rotates.

On Wed, Dec 7, 2011 at 5:26 PM, Dianne Hackborn <[email protected]> wrote:

> No, the new behavior is the correct and desired behavior.  Applications
> can't go into the space of the system bar, so it should not be included in
> the display size they see.
>
>
> On Wed, Dec 7, 2011 at 12:30 PM, guich <[email protected]> wrote:
>
>> 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
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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