title: Android webview Inject javascript with local image
body: <p>I have a android webview. I am loading a remote page, for example: google.com using the standard <code>WebView.loadUrl(url)</code>;</p>
  
  <p>Once the page loads, <code>onPageFinished()</code>, I inject javascript like below...</p>
  
  <pre><code>WebView.loadUrl("javascript:(function() { " +
  "document.getElementById('elementid').style.backgroundImage='file:///android_asset/newbackgroundimage.png';" +
  "})()");
  </code></pre>
  
  <p>Javascript injection works fine but the problem is it does not load the background image from a local assests folder. If I supply remote image URL it works fine, but I have an image locally and need to use that in the injection.</p>
  
  <p>Could someone please help?</p>
  
  <p>Thank you!</p>