java - Get resource from WebView that has already been downloaded -


i have webview loads external web page. want implement custom caching mechanism there no need download resources css, js , images again. have tried 2 methods:

  • override shouldinterceptrequest method of webviewclient

this way able provide local resource webview. there no way resource webview downloads. real downloading happens after method has ended. according documentation resource downloaded if method returns null.

  • override onloadresource method of webviewclient

this way can url of loaded resource , nothing more...

thanks help!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -