I would like to create an Android app (for a tablet) that should be only displayed in landscape orientation, e.g. the app should ignore rotations by 90°, but support rotatio
The new sensorLandscape screen orientation is apparently meant for this purpose.
Eg, you could do:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
Unfortunately, this is only available as of Android 2.3. I'm currently looking for a way to achieve this on Froyo.