[android-developers] detection twist using orientation sensor
At the moment I can detect rotation along the x-axis and also y-axis.
However imagine the user holding their phone looking at the screen, I
want to detect and measure how much the user has rotated their phone
to the left or right such that the screen is always vertical. I
thought this would correspond to the z-axis rotation but from my
logging it seems like there is also dramatic rotation on the other
axis. So my question is how can I detect the user rotating their
phone in a twisting motion such that the screen is always facing the
user? I want to be able to detect this motion and also measure the
amount of twist the user has applied.
--
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