Which device is this?

On Tue, Jun 7, 2011 at 1:32 AM, Marcin Mikosik <[email protected]>wrote:

> 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




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