Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to disable screen rotation android studio

//put this <
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
 // > In your MainActivity.java
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #screen #rotation #android #studio
ADD COMMENT
Topic
Name
3+5 =