title: Loading an Android Resource into a WebView
body: <p>I have an Android app that displays a comic book. To make use of the built-in zoom controls, I am loading the pictures in a <a href="https://developer.android.com/reference/android/webkit/WebView.html" rel="noreferrer"><code>WebView</code></a> like so:</p>
  
  <pre><code>webView.loadUrl("file:///android_asset/page1.jpg");
  </code></pre>
  
  <p>This is working just fine, however, since the images are in the assets folder, they are not being compressed which makes my <em>.apk</em> enormous. I was wondering how to reference resource files (from the <code>res/drawable</code> folder) with a file path like I did above with the assets. Does anyone know what that path would look like? I've tried things like <code>"file:///res/drawable/pagetitle.jpg"</code> with no success. Thanks for the help.</p>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>I found that <code>"file:///android_res/drawable/page1.jpg"</code> was the path that I was looking for.</p>