Answers for "android studio how to disable screen rotation"

1

how to disable screen rotation android studio

//put this <
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
 // > In your MainActivity.java
Posted by: Guest on August-23-2021
0

android studio turn off screen rotation

<!-- inside of your AndroidManifest.xml -->
<activity android:name=".MainActivity"
		  android:screenOrientation="portrait"/>
Posted by: Guest on March-05-2020

Code answers related to "android studio how to disable screen rotation"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language