title: Android - Set a Local Image to an img element in WebView
body: <p>I am passing a local file through Javascript to set an img source and I cannot get it working.
  The javascript to set the path is</p>
  
  <pre><code>&lt;img src='" + the_payload.image + "' width='" + (cellWidth()-20) + "' /&gt;
  </code></pre>
  
  <p>The String that I am sending is the complete file path:</p>
  
  <pre><code>file:///mnt/sdcard/Android/data/com.newvisioninteractive.android.myapp/files/c87eba4a-5349-4a55-baec-cc573a5f7571-thumb.png
  </code></pre>
  
  <p>I saw a post about ContentProviders and ParcelFileDescriptors but could not get that to work either. </p>
  
  <p>This is for a Calendar View that displays images on certain days. It works fine when I pass in a static image, just not a local one.</p>
  
  <p>Also, I have set</p>
  
  <pre><code>    mWebView.getSettings().setAllowFileAccess(true);
      mWebView.getSettings().setJavaScriptEnabled(true);
  </code></pre>
  
  <p>Do I need to set any other Permissions?</p>