Using setRequestedOrientation, you can set the orientation of SCREEN_ORIENTATION_LANDSCAPE or SCREEN_ORIENTATION_PORTRAIT or bind it to the G-sensor. In the latter case, it is clear that the system supports two more screen orientations, i.e. a 180 turn relative to the options mentioned. The question is how can the program set these orientations.

  • You need to rotate the view: getRotation . - Gorets
  • However, this is get, not set. - sercxjo

1 answer 1

SCREEN_ORIENTATION_REVERSE_LANDSCAPE, SCREEN_ORIENTATION_REVERSE_PORTRAIT

API level 9 - that's why eclipse didn't offer such options.