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

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

php - Passing multiple values in a url using checkbox -

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