Android, changing orientation of WebView in fragment -


i have fragment webview , need play video in fullscreen. can't use android:configchanges="orientation|screensize" in androidmanifest mainactivity, because mainactivity has 2 different layout lanscape , portrait mode. calling method setretaininstance on fragment retain fragment (it not destroyed), hence instance variables of fragment preserved, destroy fragment's view hence webview gets destroyed.


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? -