Hi Shital

Please try below code.

WebView mWebView=(WebView)findViewById(R.id.mWebView);

 mWebView.loadUrl("file:///android_asset/html/raj.html");
            mWebView.getSettings().setJavaScriptEnabled(true);
            mWebView.getSettings().setSaveFormData(true);
            mWebView.getSettings().setBuiltInZoomControls(true);
            mWebView.setWebViewClient(new MyWebViewClient());

private class MyWebViewClient extends WebViewClient
{
    @Override
    //show the web page in webview but not in web browser
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        view.loadUrl (url);
        return true;
    }
}




On Fri, Sep 23, 2011 at 5:07 PM, shital suryawanshi
<shital.andr...@gmail.com> wrote:
>
>      WebView  mWebView =(WebView) findViewById(R.id.webView1);
>      mWebView.loadUrl("file:///android_asset/html/raj.html");
>
> this my code
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to