Answers for "how to disable landscape mode in android"

1

android disable landscape mode

<activity android:name=".SomeActivity"
    android:label="@string/app_name"
    android:screenOrientation="portrait" />
Posted by: Guest on September-16-2020
0

disable portrait mode android

// add this in your manifest.xml 

<activity
        android:name=".MainActivity"
		<...other code>
        android:configChanges="orientation"    //<--ADD THIS
        android:screenOrientation="portrait">  //<--ADD THIS
Posted by: Guest on May-05-2021

Code answers related to "how to disable landscape mode in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language