Android I want to get rotation angle for device
android, orientation
Solution
Use SensorManager and TYPE_GYROSCOPE/TYPE_ROTATION_VECTOR/TYPE_ORIENTATION/ to get these value.
Look this page for details.
Problem
For example, I started application then device is turned 90 degree by side.I want to detect this event for each planes on device.