To lock the application to run in only 1 screen orientation, we could do this in AndroidManifest.xml
:
<activity
android:name="..."
android:screenOrientation="portrait"/>
The problem is that I just found out that I need to make the application also rotary for reversePortrait
, the first thing I tried was:
<activity
android:name="..."
android:screenOrientation="portrait|reversePortrait"/>
But it seems to android:screenOrientation
allow only one meaning. How else could we achieve this?
source
share