[android-developers] Re: loading an html file from local res directory
I found the answer!
I should put the .html file in the assets folder and then use
mWebView.loadUrl("file:///assets/about.html");
Thanks!
On Sep 29, 8:46 pm, Saied <saie...@gmail.com> wrote:
> This should be very simple, but I can't find the answer anywhere.
>
> How do I load an html file (which I assume I keep in res/raw folder)
> into a webview?
>
> neither
> mWebView.loadUrl("file:///raw/about");
>
> or mWebView.loadUrl("file:///raw/about.htmal");
>
> works.
>
> What's the correct syntax or arrangement.
>
> Thank you.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home