views:

1039

answers:

3

Hello,
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 with the whole WebView. Thanks, Isaac

+1  A: 

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

Isaac Waller
A: 

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

<activity android:name=".WebContent" android:configChanges="orientation">
mbarkhau
A: 

issac can you maybe include some of the code you have in the onConfigurationChange method? having the same issue right now

The following link goes through a coded example of using onConfigurationChange method to handle your own orientation/keyboard popout changes: http://www.androidguys.com/2008/11/11/rotational-forces-part-three/
DEzra