Loading

Friday, August 6, 2010

How to disable the auto-rotate feature?

In some case, we want our app run in portrait mode only, so we have to disable the auto-rotate feature. Simple add the statement android:screenOrientation="portrait" in your AndroidManifest.xml, inside <activity>

<activity android:name=".MyActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">

SHARE TWEET

Thank you for reading this article How to disable the auto-rotate feature? With URL https://x-tutorials.blogspot.com/2010/08/how-to-disable-auto-rotate-feature.html. Also a time to read the other articles.

0 comments:

Write your comment for this article How to disable the auto-rotate feature? above!