title: How do you load Javascript into android webview?
body: <p>HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
      &lt;html&gt;
          &lt;head&gt;
              &lt;script src="resource://jquery.min.js"&gt;&lt;/script&gt;
          &lt;/head&gt;
          &lt;body&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>I want to intercept the protocol(resource://) and manual load Javascript into the webview.
  So I can store third party libs in android assets.</p>
  
  <p>I tried override onLoadResource of WebViewClient and then use <strong>webView.loadData(data, mimeType, encoding);</strong>
  But it didn't work because the app went into a endless loop.</p>