Android WebView Save State

前端 未结 1 1259
梦如初夏
梦如初夏 2021-01-25 17:23

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

相关标签:
1条回答
  • 2021-01-25 17:49

    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

    0 讨论(0)
提交回复
热议问题