Android: how to retrieve an image from res/drawable and put it into WebView.loadUrl()
<p>I already tried the following but without success.
My project is using API level 4.</p>

<p><a href="http://stackoverflow.com/questions/4855008/loading-an-android-resource-into-a-webview">from stackoverflow</a></p>

<p><a href="http://developer.android.com/reference/android/content/ContentResolver.html#openAssetFileDescriptor%28android.net.Uri,%20java.lang.String%29" rel="nofollow">from android documentation</a></p>

<p>Here is my code:</p>

<pre><code>webView.loadUrl("android.resource://com.package.name.from.manifest/" + R.drawable.pic); 
</code></pre>

<p>And I've got the following error in the WebView widget:</p>

<blockquote>
  <p>Web page not available</p>
  
  <p>The Web page at
  android.resource://com.package.name.from.manifest/2130837504 might be
  temporarily down or it may have moved permanently to a new web
  address.</p>
</blockquote>

<p>Am I missing something? Should I create html page which will include a link to the resource as &lt; img ...> tag?</p>
