Not able to fetch correct degree from getOrientation method
问题 I am trying to get the tilt angel from Android orientation. The values which i am getting from SensorManager.getOrientation(mRotationMatrix, mValuesOrientation) is not degrees.... On putting the phone on a horizontal plane it returns improper values I have tries using few methods found on net without any luck.. So far tried Math.sin(Math.toRadians(mValuesOrientation[0])); Math.toDegrees(mValuesOrientation[0]); and others Code is below public class MainActivity extends Activity { @Override