Answers for "lock the screen rotation in android studio"

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

how to stop screen rotation in android code

<activity
        ...
        ...
        android:screenOrientation="nosensor">
Posted by: Guest on May-25-2020

Code answers related to "lock the screen rotation in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language