Can someone tell me how to lock my application to a portrait mode? Is it a simple configuration in the manifest file?
On the main screen of Rotation Manager, select an orientation by tapping on either the vertical or horizontal icons next to a specific app to lock it into either landscape or portrait mode. Highlighting both icons will allow that particular app to auto-rotate.
Open Quick settings again. Whether you are holding your device upwards or sideways, swipe down from the top of the screen. Tap the Auto rotate icon to lock your device in your desired position. Remember, Portrait is when the device is upwards, and Landscape is when the device is sideways.
Yes. Add android:screenOrientation="portrait"
to the manifest under your main activity.
<activity android:name=".yourActivity" android:screenOrientation="portrait"... />
Yes! It's an attribute of the activity tag:
<activity android:name=".yourActivity" android:screenOrientation="portrait" ... />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With