title: Cannot load JavaScript and CSS files from assets into an html in a WebView
body: <p>My WebView cannot render an html file stored in the <code>assets</code> folder which contains scripts src (and also CSS path), like </p>
  
  <pre><code>&lt;script type="text/javascript" src="file:///android_asset/emergency.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>It's showing a white screen.<br>
  Any ideas how to fix that?</p>
  
  <p>I've read other answers, but it seems none of them suits my case.  </p>
  
  <p>Here is my code from MainActivity.java</p>
  
  <pre><code>    WebView browser = (WebView) this.findViewById(R.id.webView);
      String html = "file:///android_asset/file.html";
  
      browser.loadDataWithBaseURL("file:///android_asset/", html, "text/html", "utf-8", "");
  
  
      browser.getSettings().setJavaScriptEnabled(true);
      browser.getSettings().setSupportZoom(false); 
      browser.getSettings().setBuiltInZoomControls(true);
      browser.getSettings().setDisplayZoomControls(false);
  
      try {
              browser.loadUrl(html);
  
          } catch (Exception e) {
              e.printStackTrace();
          }
  </code></pre>