I have been trying to keep the loaded page and javascript values of a WebView on orientation change and pausing the activity. First I tried overriding configChanges, but that resulted in my GUI not being updated properly (i have a slidingdrawer that changes position on orientation change). After that i tried to put the WebView in a fragment and calling setRetainInstance(true); But this does not keep the content of the WebView intact. I tried keeping the same object alive by not recreating it, but android does not allow views to be re-used in that fashion.
my question is: is there any way to keep the contents of the webview without having to reload it on every orientation change, whilst having the other GUI components update properly.
I hope my question is clear enough, but i'd be happy to elaborate if there are any unclearities.
EDIT: i already tried adding android:configChanges="keyboardHidden|orientation" in my manifest, that is what i meant by "overriding configchanges"
It seems like the only solution is to update all javascript variables again on orientation change. As I have not yet ran huge chunks of updates through javascript, I cannot provide much insight regarding the speed and resources of this operation.