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?


or  mWebView.loadUrl("file:///raw/about.htmal");


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



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. How to disable automatic redirect handling by HttpClient in Android 1.5?


As I understand by default HttpClient automatically handles Redirect
replies from server (follows the redirect link included in the answer
from a server).
I wonder if and how is it possible to disable this behaviour and
handle redirects manually, meaning that I can get redirect link from
the reply, modify it and issue a new http request. In a "desktop"
version of HttpClient/HttpMethod one can do it as follows:

HttpMethod method = new GetMethod(requestUrl);

How can I do the same under Android?

Thank you in advance for replies!

Best regards,


2. get accelerometer data at given freequencies


I'd like to know if there's the possibility to set up a chosen
frequency to get sensor data to have for example 15 readings per
The only way to get for accelerometer data is via an SensorListener?
Or can I access directly to data via a function (if so it will be easy
to achieve my needs using a for statement with a Sleep period)...




3. Practical question

4. Playing iopd videos

5. AJAX API support on Android 1.5

6. Internet Activity

7. Hi, I was really hoping someone could make something like this, it would be very helpful.