1

My WebView converts https to http, as evident from checking the url parameter in shouldOverrideUrlLoading() method. I have tried using

webView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE), but it doesn't work.

How do I fix this? Please help!

2

1 Answer 1

2

you can handle every url as you wish just set up your webview via customized WebViewClient

webview.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView webView, String url) { if (url.startWith("https")) { //do whatever you need } return false; }else if(.... 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.