Possible Duplicate:
How to set android show vertical orientation?
I'm trying to disable auto rotation when I run my application in Android. Maybe, I should add a line code in AndroidManifest.xml Anyone know How can I do that ?
To adjust the screen rotation settings: Swipe down from the top of the screen to open the Quick settings panel. Look for the screen orientation icon. Depending on your settings, you may need to look for the Portrait, Landscape, or Auto Rotate icon.
How do I stop my screen from rotating on certain apps? To access the Accessibility features on your Android device open the Settings app. In the Settings app, select Accessibility from the list. Now scroll down to the Interaction controls section and select Auto-rotate screen to set the toggle switch to Off.
Swipe down from the top of the screen to open the Quick settings panel. Tap More options (the three vertical dots), and then tap Edit buttons. Touch and hold the Auto rotate icon, and then drag it to your desired position.
Turn On Screen Rotation From Android Settings In case you have a non-functional tile in Quick Settings, this method should fix your problem. Launch the Settings app on your Android phone. Tap Display in the list of items. Turn on the option that says Auto-rotate screen.
Add something like android:screenOrientation="portrait"
or android:screenOrientation="landscape"
in the AndroidManifest.xml:
<activity android:name=".MyActivity"
android:label="@string/app_name"
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