On Thu, Jul 1, 2010 at 5:41 AM, monil shah <[email protected]> wrote:
> I m making an app in which i have to show the html file in webview.
> For that I have put that file /asset folder and write following code.
>
> webview=new WebView(this);
> webview.loadUrl("file//android_asset/demo.html");
>
> still it is not working for me?
> Am I missing something??

Are you calling setContentView() on your Activity, providing it the
WebView widget?

Here is a sample project demonstrating the use of HTML in assets/

http://github.com/commonsguy/cw-advandroid/tree/master/WebView/GeoWeb1/

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to