HTML code:
<!DOCTYPE html>
<html>
<head>
<script src="resource://jquery.min.js"></script>
</head>
<body>
</body>
</html>
I want to intercept the protocol(resource://) and manual load Javascript into the webview. So I can store third party libs in android assets.
I tried override onLoadResource of WebViewClient and then use webView.loadData(data, mimeType, encoding); But it didn't work because the app went into a endless loop.
file:///android_assetURLs instead? - CommonsWare<script type="text/javascript" src="file:///android_asset/www/cordova-2.6.0.js"></script>- Seaborn Lee