Answers for "android disable portrait mode"

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 "android disable portrait mode"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language