How to disable the Landscape mode in Android? - Programmers Heaven

Howdy, Stranger!

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

Categories

How to disable the Landscape mode in Android?

Jeson84Jeson84 USAPosts: 90Member

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

Tagged:

Comments

  • DavidMDavidM USAPosts: 342Member

    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.