title: how to load a picture from my resource in webview?
body: <p>I want to load a picture called map.png set in my drawable resource in the WebView.</p>
  
  <p>I found in another answer this suggestion     webview.loadUrl("file://...") but I don't understand how to set it properly.  I always get error that the requested file was not found. This is what I wrote </p>
  
  <pre><code>`public class Map extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.map);
    WebView mWebView =(WebView)findViewById(R.id.webMap);
          mWebView.getSettings().setJavaScriptEnabled(true);
          mWebView.loadUrl("file://res/drawable/map");`
  </code></pre>
  
  <p>This is the XML</p>
  
  <pre><code>    &lt;WebView xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/webMap"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" android:orientation="vertical"&gt;
  
  &lt;/WebView&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xmeHU.png" alt="enter image description here"></p>
  
  <pre><code>     setContentView(R.layout.map);
    WebView mWebView =(WebView)findViewById(R.id.webMap);
          mWebView.getSettings().setJavaScriptEnabled(true);
          mWebView.loadUrl("file:///android_assets/map)");
  </code></pre>
  
  <p>This is a complete screen shot</p>
  
  <p><img src="https://i.stack.imgur.com/7fv38.jpg" alt="enter image description here"></p>
  
  <p>This is the new code but I get an error</p>
  
  <pre><code>@Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.map);
          WebView myWebView = (WebView) findViewById(R.id.webMap);
          myWebView.getSettings().setJavaScriptEnabled(true);
          myWebView.getSettings().setBuiltInZoomControls(true);
          myWebView.setWebViewClient(new MyWebViewClient());
          myWebView.loadUrl("file://mnt/sdcard/map.png");
  </code></pre>