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. GK: Urgent -- Combine all the multiple apks in one APK file

Please do not cross-post to multiple lists.




You can't just "bundle the multiple apks to one apk". You will need to
merge them at the source code level, so there is a single manifest, etc.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in NYC: 10-11 April 2010: http://guruloft.com

-- 

2. How to change "Enable GPS satellites" default value

Any one?  :-(




-- 

3. Problem of Highlight in Webview

4. Understanding Broadcast Receiver

5. Need help: How to disable a view(provided there are 2 views in xml) ??

6. Paging moto cliq user

7. Strange problem with Runnable interface