[android-developers] Keeping WebView history through orientation change?

2011-03-19 Thread Joseph S
Hello All, Working on my first Android project here... I have an Activity that has a WebView and my own WebViewClient. To deal with orientation changes, I have configChanges in the manifest and onConfigurationChanged. During onCreate and onConfigurationChanged I set up the views by calling my ow

Re: [android-developers] Keeping WebView history through orientation change?

2011-03-19 Thread Mark Murphy
On Sat, Mar 19, 2011 at 5:00 PM, Joseph S wrote: > I have an Activity that has a WebView and my own WebViewClient. To > deal with orientation changes, I have configChanges in the manifest > and onConfigurationChanged. > > During onCreate and onConfigurationChanged I set up the views by > calling m

Re: [android-developers] Keeping WebView history through orientation change?

2011-03-19 Thread Miguel Morales
A simple way is to override onSaveInstanceState on your activity and call saveState on your webview. Then on your onCreate if the saved state bundle isn't null call restoreState on the webview. It should reset its layout, and remember its history. On Sat, Mar 19, 2011 at 2:21 PM, Mark Murphy wro