WebView Display White or Blank page

android, android-webview

Solution

For anyone still having this issue, it seems that the WebViewClient does not warn you if a secure connection via https has failed. This is likely due to an SSL error on the server you are connecting to.

You can try using http instead if the server allows it.

Problem

does anyone know why webview displaying white page? Here is the code ``` webView = (WebView) this.findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(THE_URL); webView.setWebViewClient(new WebViewClient()); ``` and this functions is also called: ``` @Override public void onPageFinished(WebView view, String url) { } ``` am I missing something there? Of course, the error is not from the XML, because the webview only does not display some URL. Thanks

Original source