0

In the browser that comes with Android, when you rotate the phone, the WebView is not reloaded. I was wondering how to do this. I can save the current URL of the Webview and pass it to the next version of myself, but how do I do that with the whole WebView?

philipxy
  • 14,867
  • 6
  • 39
  • 83
Isaac Waller
  • 32,709
  • 29
  • 96
  • 107

2 Answers2

2

I ended up just using onConfigurationChange and kept the same WebView. Thanks,
Isaac Waller

Isaac Waller
  • 32,709
  • 29
  • 96
  • 107
1

Don't forget to register for the configChange in your Manifest.

<activity android:name=".WebContent" android:configChanges="orientation">
mbarkhau
  • 8,190
  • 4
  • 30
  • 34