How to disable the Landscape mode in Android?

I need to disable the Landscape mode in Android. Please let me know how to achieve this.


  • add the code segment android:screenOrientation="portrait" in AndroidManifest.xml file.

    example <activity android:name=".MapScreen" android:screenOrientation="portrait"></activity>

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion