Skip to content Skip to sidebar Skip to footer

Android Webview Save State

I have an app with a WebView. There is a page with Upload Photo button so I use the openFileChooser. Sometimes I have a problem when the camera is chosen. The activity restarts and

Solution 1:

You can save the Webview in Android Cache : Use WebView Setting :

webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);

This will help you ..happy codeing

Post a Comment for "Android Webview Save State"