Re: [android-developers] .html filed loading problem.how to i will solve it
yYes...you should enable javacsript..
2011/9/23, Chirag Raval <chirag.android.developer@gmail.com>:
> 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.android@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home