开发者

Android: webview loading problem

I am loading web page content using web view, But some time i am facing "ERROR/Web Console(889): TypeError: Result of expression 'this.mb' [null] 开发者_如何学JAVAis not an object." this error. How to resolve this problem. Please help anyone.

Thanks, Baskar


You should add the given blow code i think in your code plugin or java script are not enabled.

WebView webView=(WebView)this.findViewById(R.id.WebView01);
Intent intent = new Intent(Intent.ACTION_VIEW);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setAllowFileAccess(true);
webView.getSettings().setPluginsEnabled(true);

I hope this is help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜