That's not what you want.  It sounds like you want a largest dimension?
 There is some hidden code for getting this, but it is not completely
correct.  We can make a public method for it, but it will need to be fixed
to be more accurate.

On Fri, Dec 9, 2011 at 4:13 AM, guich <guiha...@gmail.com> wrote:

> Hi Dianne,
>
> Lemme explain my problem.
>
> All my application is drawn in an offscreen bitmap. When the
> application starts, i get the maximum width/height of the screen and
> create a square bitmap. This way, when screen rotates, i don't have to
> create another bitmap. This prevents some crashes in my application.
>
> I'm aware of the "bug fix", i saw your comments in another thread.
> What i'm asking is if Google can create a way to retrieve the size
> with something like this:
>
> public Size getSizeOfScreenIncludingTaskbarArea()
> or
> public Size getSizeOfScreenForOrientation(int orientation) // VERTICAL
> or HORIZONTAL
>
> This would help a lot.
>
> thanks for your time.
>
>    Guich
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to