Wednesday, May 12, 2010

Android - loading a javascript file from a web page needs internet permission

If you're trying to include javascript in an android.webkit.WebView view with a standard script tag like this:
<script language="javascript" src="demo.js" />
You need to add internet permissions to your manifest:
<uses-permission android:name="android.permission.INTERNET" />
Doesn't seem to matter that the file is local.

No comments: