title: android webview loading images
body: <p>I have looked at 50+ sources, none give the exact information</p>
  
  <p>loading html into webview with images in the code does make webview load the images, only when it exists in the assets</p>
  
  <p>I can make webview show images from other sites as well</p>
  
  <p>I am creating images dynamically, and I want to show them in the webview</p>
  
  <p>I cannot copy files to the assets folder, so I cannot load them from there either</p>
  
  <p>It is as if it is carefully planned to prevent a very specific functionality that I am striving for.</p>
  
  <p>There are many answers providing solutions, none do work, and they are from many years ago.</p>
  
  <p>I want to load files that exist in the getFilesDir(); directory, because they are created there.</p>
  
  <p>I'd appreciate help, thank you.</p>
  
  <p>I have tried </p>
  
  <p>all these:</p>
  
  <pre><code>webView.getSettings().setAllowFileAccess(true);
  webView.getSettings().setAllowContentAccess(true);
  webView.getSettings().setAllowFileAccessFromFileURLs(true);
  webView.getSettings().setAllowUniversalAccessFromFileURLs(true);
  webView.getSettings().setBuiltInZoomControls(true);
  webView.getSettings().setLoadsImagesAutomatically(true);
  webView.getSettings().setJavaScriptEnabled(true);
  </code></pre>
  
  <p>&amp; many many combinations of URLS trying to access the file at getFilesDir(); in the HTML code none work except for loading from other sites, and from assets which I cannot write to.</p>