I have some web pages that I want to bundle with my Android application and display it as static pages . Where do I keep them? How do I use them? I am working in Eclipse, so I want a solution that automatically bundles them.
I have tried to put my web page in RAS / raw, and I can read them from there as an input stream, so I can push a WebView on it but I really I would love if I could touch them somewhere else and use them with the URL. I have tried the file: ///android_asset/about.html But that was not working There is definitely a way to create a URL to display bundled pages.
Put them in the "Asset" folder and do the following:
webview .loadUrl ("File: ///android_asset/file.html");
Comments
Post a Comment