Locking Screen Orientation
suggest changeTo lock the screen orientation of any activity in your Android application, set the android:screenOrientation property of that <activity> in AndroidManifest.xml:
<activity
android:name="com.techblogon.screenorientationexample.MainActivity"
android:screenOrientation="portrait"
android:label="@string/app_name" >
<!-- ... -->
</activity>
That activity is then forced to stay in portrait mode.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents