Friday, November 23, 2012

[android-developers] Wrong resolution ???

Hi there,

I have an emulator instance that seems to be reporting wrong resolution,
but I am not sure if it is a problem of the emulator or may be also a
problem in an actual device with same setup since I have no one. I use
this code to get the resolution:

getWindowManager().getDefaultDisplay().getWidth()
getWindowManager().getDefaultDisplay().getHeight()

The emulator tries to be like a Samsung Galaxy Tablet with 10'1 inches
screen and 1280x800 resolution, with software buttons. The problem is
that putting it on landscape mode (pressing ctrl+f12, you know), and
executing my app, it reports following resolution:

1238x752

I would understand that 752 due these 48 pixels being reserved for the
software buttons, but the 1238 has no sense at all: software buttons are
put just in one position depending on device orientation, not both...

Do you think it is just an emulator bug or may I found this situation on
actual devices?

Thanks a lot in advance,



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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate