android - Rotate screen without turn on auto-rotate -


i'm making small streaming tv application android.

i want set video-view fullscreen when user rotates device. allowed when auto-rotate button enabled.

how make app rotate screen without turning on auto-rotate button? noticed there many apps , games can that, clash of clan.

inside androidmanifest add attribute activity : android:screenorientation="landscape"

else add code oncreate method : this.setrequestedorientation(activityinfo.screen_orientation_reverse_landscape); make rotate run hope helps


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -