..
Android Smart Visitor

How to disable the auto-rotate feature?

August 07, 2010 | By Andro ID

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">
addtomyyahoo4 Subscribe in NewsGator Online Add to My AOL
Subscribe with Bloglines Add to netvibes Add to Google