SetRequestedOrientation landscape vs. activity reverseLandscape?

Is it possible to set the orientation of activity (either in the manifest, or using setRequestedOrientation) and indicate which landscape or portrait mode to use? That is, can I choose a device on the left or right?

From 2.1, this seems impossible, but I wondered if anyone has any workarounds?

And where is it used ?

+3
source share
2 answers

When you define your activity in a manifest, you indicate the orientation.

<activity
    android:screenOrientation="landscape" />

will only be displayed in landscape.

+1
source

You can try setRequestedOrientation (8).

API 1, reverseLandscape - 9. ? Idk, , .

+1

All Articles