开发者

Android: webview loading problem

开发者 https://www.devze.com 2023-03-12 13:47 出处:网络
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.

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

精彩评论

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