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.

Comments

  • 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!

Categories

In this Discussion