Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android web view not displaying https:\\ url

I have used web view to display html data. Now html data contains image , with src=\"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

like image 689
nirav Avatar asked Dec 07 '25 12:12

nirav


1 Answers

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

like image 125
Sunil Kumar Sahoo Avatar answered Dec 10 '25 02:12

Sunil Kumar Sahoo