loading an html file from local res directory

by Saied » Thu, 30 Sep 2010 11:46:51 GMT


Sponsored Links
 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.

--



loading an html file from local res directory

by Saied » Thu, 30 Sep 2010 12:18:56 GMT


 I found the answer!

I should put the .html file in the assets folder and then use
mWebView.loadUrl("file:///assets/about.html");

Thanks!




--


Sponsored Links


loading an html file from local res directory

by poonam sinha » Thu, 30 Sep 2010 15:29:51 GMT


 Hi I wanna to know
difference  application layer and middle layer in android


what is these layer and use
examplain in details

--



Other Threads

1. packaging to a jar file

I want to package my project into a jar instead of an apk.
Is there a way to do that using the aapt tool or any other tool?

-- 
Thanx n Regards
Snehal

--~--~---------~--~----~------------~-------~--~----~

2. How to get the IMEI number of a android device programmatically?

Use TelephonyManager's getDeviceId().





--~--~---------~--~----~------------~-------~--~----~

3. g1 accelerometer refresh rate

4. Music application and opencore

5. How to add the superscript affect to the string?

6. G1 device is slow

7. J2ME Sprite equivalent api