> i'm using file:///android_asset/resourcename to access apk resources,
> as various online resources and the WebKit doc page suggest, but i'm
> getting no success.

Visit:

http://commonsware.com/AdvAndroid/

and download the source code. In there, you will find the WebKit folder
containing a pair of projects that successfully load HTML pages out of
assets/. I have tested this code on Android 1.5 and it works there too,
though the ZIP file contains Android 1.1 projects.

> the docs say that apk asset access is "more restricted" post-1.0,
> without being specific. do i need to declare a permission or
> something?

I have usually requested the INTERNET permission whenever I use WebView,
though that may just be a knee-jerk reaction. The projects I cite above
have INTERNET and ACCESS_FINE_LOCATION (they demonstrate allowing location
information access from Javascript).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to