Restore Webview Scroll Position?
I want to save the state of my webView with its page scroll position when user leaves the app and restore them when user opens the app again. So that, user can continue reading the
Solution 1:
You could save the position in the SharedPreferences in the OnDestroy method and retrieve it in the OnCreate method.
EDIT: As stated here, OnPause should be the place to store data, not OnDestroy.
Post a Comment for "Restore Webview Scroll Position?"