So I understand that when I rotate the screen the contents will be set back to how they were originally because the activity is created and destroyed for the new layout.
This is an issue for me as my web-app which I am displaying in a WebView displays unique information to the user, when they turn the phone sideways the data is lost. Now, I know the two methods I must override, but I'm not entirely sure of what I can put in the onSaveInstanceState to resurrect the exact page with the exact same data. I would have tried storing the URL and using that but the pages use random features so it would be different.
So far all I have is:
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
Any thoughts of how to achieve this?