title: Webview not able to load https url in android?
body: <p>I am implementing webview application in android. When i am trying to load <strong>https url</strong> one or two times it <strong>finishes the activity</strong>. Agian trying to load <strong>https url</strong> it shows webpage not available. please find below image what i got.</p>
  
  <p><img src="https://i.stack.imgur.com/9bXN0.png" alt="enter image description here"></p>
  
  <p>When i click on that url again, then it shows the websit.   </p>
  
  <p>I used the below code for loading the url.</p>
  
  <pre><code>webView = (WebView) findViewById(R.id.webView);
  webView.getSettings().setJavaScriptEnabled(true); 
  webView.loadUrl("https://www.facebook.com");
  webView.clearView();
  webView.measure(100, 100);
  webView.getSettings().setUseWideViewPort(true);
  webView.getSettings().setLoadWithOverviewMode(true);
  
  
  
      webView.setWebViewClient(new WebViewClient() {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              view.loadUrl(url);
              return true;
          }
  
          @SuppressLint("NewApi")
          @Override
          public void onReceivedSslError(WebView view, SslErrorHandler handler,     SslError error) {
              super.onReceivedSslError(view, handler, error);
  
              // this will ignore the Ssl error and will go forward to your site
              handler.proceed();
              error.getCertificate();
          }
      });
  </code></pre>
  
  <p>please any help guys.......</p>
  
  <p>Thanks in advance</p>