Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
3k views

How can i get device tilt?

I am trying to get device tilt (device rotation along y-axis but unfortunately i am unable to achieve my goal. I have tried a lot of stuff using TYPE_ACCELEROMETER and TYPE_MAGNETIC_FIELD as a ...
Mohammad Imran's user avatar
0 votes
0 answers
176 views

Acceleration compensation on rotation vector using android device

I'm triying to get the inclination of an android device mounted on a moving vehicle using TYPE_ROTATION_VECTOR with sensor manager. It works fine until the vehicle accelerates or decelerates suddenly,...
user2889840's user avatar
2 votes
0 answers
578 views

Detect if the phone rotated 360 degrees in Android

I need to find a way to detect if the phone has rotated 360 degrees, by using (preferably) the accelerometer, gyroscope and/or compass. But there is another catch: When the phone is in portrait mode, ...
Hidde's user avatar
  • 374