I know I can use display.getRotation() to determine one of: Surface.ROTATION_0 Surface.ROTATION_90 Surface.ROTATION_180 Surface.ROTATION_270
with respect to the "natural" device orientation. But I want to use this data to determine one of: ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE so that I can use this in setRequestedOrientation(). The trouble is I don't know how to map the first set to the second set. I suppose if I knew how to determine which ActivityInfo constant went with the "natural rotation", then I would be able to do. So how do I determine if the natural rotation is portrait or landscape? (I assume it is never reverse portrait or reverse landscape!) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

