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
shouldinterceptrequestmethod 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
onloadresourcemethod of webviewclient
this way can url of loaded resource , nothing more...
thanks help!
Comments
Post a Comment