I recommend using the getAssets() call to retrieve files from your
assets folder.

http://developer.android.com/reference/android/content/res/Resources.html#getAssets()

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug 16, 6:58 pm, Gareth <[email protected]> wrote:
> I have a test project with a WebView that displays a html page
> (demo.html) stored in the assets folder.  I've stored images and
> databases in the assets folder before without any problem, but for
> some reason now that assets aren't being seen.  The code I'm using is
> as follows;
>
> WebView webStep = (WebView)findViewById(R.id.webview);
> webStep.loadUrl("file:////data//data//com.test//assets//demo.html");
>
> When I run this the UI displays the WebView displays page not found.
> What am I doing wrong?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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