Prevent WebView to reload on rotate

0 Brian Henric · September 11, 2015
Hey guys, i'm making an android app for a web app. the app work but every time i rotate the phone, the app reload into the main page of the website (which is the page of the url in java). i've try to add android:configChanges="orientation|screenSize" in manifest but doesn't work. is there a way to prevent this???

Thanks in advance

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · September 11, 2015
Go to your manifest and declare the orientation to be either landscape or portrait. This will prevent rotation. Alternatively, I once Googled this problem for myself and found that you could "lock the screen" to be a certain orientation until you get done with your background task. 
  • 1

Java / Android Development

106,977 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator