Friday, December 24, 2010

[android-developers] Did sensor orientation change in SDK 2.3?

The following test was with Nexus S lying flat on table with display
up.

When running the ApiDemos/Sensor application in SDK 2.2, the red and
green lines (i.e., x-axis accelerometer and y-axis accelerometer,
respectively) are at the 0 g axis and the blue line (i.e., z-axis
accelerometer) is at the -1 g axis. However, when running the
ApiDemos Sensor application in SDK 2.2, the blue line is at the +1 g
axis. Looking at Sensor.java, it appears to me that the application's
scaling is the same. Looking through the documented API differences,
I didn't see any mention of sensor orientation change. Yet, the
screen y-axis appears in the ApiDemos/Sensor applications in SDK 2.2
and SDK 2.3 are inverted. What changed?

- Greg

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