Hi,

I'm experimenting with newly bought android tablet and found out that
android API it provides does not comply with android API
documentation/specification.
Specifically Display.getRotation() and Accelerometer readings returns values
that contradicts each other.

For example:
running application that has android:screenOrientation="landscape" and
quering Display.getRotation() returns Surface.ROTATION_0 which means this
tablet is "landscape-default device" as described in
http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another.html

Still, when running the same application and holding device in landscape
orientation in front of me, I get accelerometer reading that says something
around: X=10, Y=0 which is clearly wrong because accelerometer coordinate
system should be aligned with device default orientation (landscape in this
case). According to blogpost mentioned above - when I keep device in its
default-orientation (which is landscape in this case) I should get
accelerometer reading X=0, Y=10.

Can anybody suggest what's wrong here?
Either my device is broken or its software has a bug or I misunderstood the
API semantics (?)

thanks
Marcin

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