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. Perkenalan dari newbie

Boss boss sekalian...

Salam kenal dari nubi gaptek...

Baru hari ini join di milis ini.... Mohon petunjuknya...

Sent from my BlackBerry Wireless Handheld 

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:


2. Need Help : calling a non-static Java method from C in Android

Hi All

In my Android app, I need to call a  non static java method from C/C++.
But i get a blunt crash when i do it using
GetMethodID/CallVoidMethod()1 methods.

I have done like this:

1. Register the method using GetMethodID() as follows (mine is  a cpp file):

       jmethodID xyz =  (env)->GetMethodID( cls, "showxyz", "()V");

2. And I call this method as follows:

     env->CallVoidMethod(cls, xyz);

3. In java, my showxyz() is defined this way(this basically enables a
button which was disabled)

void showxyz()

And this crashes.

But I have been using this method of calling Java funcs from C using a
set of  GetStaticMethodID/CallStaticVoidMethod()(for nonstatic
methods) and that works always.

But in this case, I have to call a non-static method and i get a crash.

Can anybody please tel me where I am going wrong. I know this is a
basic JNI knowledge. But I am left high and dry. Please do advise.



3. Develop Android app using J2ME Polish

4. multiple activity refresh

5. Animation using Matrix + Camera looks dirty...

6. Manifest question

7. Android and Accessibility