2014-11-04 122 views

回答

1

請嘗試這樣的:這是樣品忽略和跳過HTTPS

webView = (WebView) findViewById(R.id.webView1); 
    WebSettings settings = webView.getSettings(); 
    settings.setJavaScriptEnabled(true); 
    settings.setDomStorageEnabled(true); 
    webView.setWebViewClient(new MyWebViewClient()); 
    webView.loadUrl("http://www.Linkedin.com"); 

    private class MyWebViewClient extends WebViewClient { 
     @Override 
     public boolean shouldOverrideUrlLoading(WebView view, String url) { 
      webView.loadUrl(url); 
      return true; 
     } 

     @Override 
     public void onReceivedSslError(WebView view, SslErrorHandler handler, 
       SslError error) { 
      super.onReceivedSslError(view, handler, error); 
      handler.proceed(); 
     } 
    } 
相關問題