开发者

Android web view not displaying https:\\ url

I have used web view to display html data. Now html data contains image , with s开发者_StackOverflow中文版rc=\"Title : Android web view not displaying https:\ url . hview does not support for https url . If suppose i used with http then it works fine . IS there any solution ??

Thanks in advance


Click here to get the solution

Use the follwoing code. You can open https using the following code

WebView webview= (WebView) findViewById(R.id.my_webview);
webview.setWebViewClient(new WebViewClient() {
 public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {
 handler.proceed() ;
 }
}

Donot forget to vote if my response is helpful for you.

Thanks Deepak

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜