Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, I found something that seems to work (on 1.6 and 2.2), in spite of a warning that it would recurse.</p> <p>I also discovered that a css style-sheet link inside the first and second page both work without the following intercept. Odd and it makes me a bit nervous. Thoughts?</p> <p>Here's the code:</p> <pre><code>WebView wv = (WebView)this.findViewById(R.id.splashWebView); wv.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } }); wv.loadUrl("file:///android_asset/html_no_copy/demo_welcome.html"); </code></pre> <p>Here's the file contents:</p> <pre><code>demo_welcome.html: &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt; &lt;title&gt;Demo Html&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="demo.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;H1&gt;Testing One Two Three&lt;/H1&gt; &lt;a href="test.html"&gt;CLICK HERE&lt;/a&gt;&lt;p&gt; &lt;a href="file:///android_asset/html_no_copy/test.html"&gt;OR HERE&lt;/a&gt; &lt;/body&gt; &lt;/html&gt; test.html: &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt; &lt;link rel="stylesheet" type="text/css" href="test.css" /&gt; &lt;title&gt;Insert title here&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;H1&gt;TEST.HTML&lt;/H1&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload