Android screenOrientation vs Rotation
<p>I am using OrientationEventListener to correctly orient my activity when user rotates the device. I orient the activity by calling Activity.setRequestedOrientation(int).</p>

<p>My problem is that OrientationEventListener returns angle from "natural device position". setRequestedOrientation takes argument such as SCREEN_ORIENTATION_PORTRAIT etc. To translate from angle to orientation I need to know what "natural device position" is, i.e. is it landscape left, landscape right, portrait or portrait reversed. Unfortunately the API doesn't seem to have a way to find out. </p>

<p>What to do?</p>
