I am trying to get a WebView
to stop reloading the page when the device's orientation changes. Per this answer, I was looking at WebView.saveState()
. The documentation for this method says:
Please note that this method no longer restores the display data for this WebView. See
savePicture(Bundle, File)
andrestorePicture(Bundle, File)
for saving and restoring the display data.
But when I looked at savePicture()
, I found that it's been deprecated:
This method is deprecated.
This method is now obsolete.
In that case, what methods should developers be using to save and restore the display data?