Answers for "enable screen rotation android"

C
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
1

how to stop screen rotation in android code

android:screenOrientation="portrait"
Posted by: Guest on May-25-2020

Code answers related to "enable screen rotation android"

Code answers related to "C"

Browse Popular Code Answers by Language