android Not allowed to load local resource:file:///android_asset
<p>i come across a strange issue that when load html page from server, in the page contains a script that links to android sdcard js file. and it fails.</p>

<p>code like below :</p>

<p>java part code :</p>

<pre><code>String url ="http://192.168.84.86:8080/test/maw/js_load_test.html";
this.loadUrl(url);
</code></pre>

<p>complements: I use phonegap develop android web application.</p>

<p>js_load_test.html file part code :</p>

<pre><code>&lt;script src="file:///sdcard/test.js"&gt;&lt;/script&gt;

and i also try : &lt;script src="file:///android_asset/www/js/test.js"&gt;&lt;/script&gt;

test.js file exists, and js file path is correct.

but in logcat shows:

when load first script:

03-18 13:01:12.467: E/Web Console(26189): Not allowed to load local resource: file:///sdcard/test.js at :0

and second script:

03-18 13:01:53.467: E/Web Console(26189): Not allowed to load local resource: file:///android_asset/www/js/test.js at :0
</code></pre>

<p>thanks so much.</p>
