android webview 访问 https 页面
2014-02-13 15:54
495 查看
在android 中利用webview 控件进行开发过程中,可能会遇到 webview 访问不了https://的页面如 https://www.google.com.hk
重写onReceivedSslError方法,handler.proceed();即可。webview 默认为handler.cancel();
mWeb.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedSslError(WebView view,SslErrorHandler handler, SslError error) {
// TODO Auto-generated method stub
//super.onReceivedSslError(view, handler, error);
Log.d(TAG,"====>handler.proceed();");
handler.proceed();
}
});
重写onReceivedSslError方法,handler.proceed();即可。webview 默认为handler.cancel();
mWeb.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedSslError(WebView view,SslErrorHandler handler, SslError error) {
// TODO Auto-generated method stub
//super.onReceivedSslError(view, handler, error);
Log.d(TAG,"====>handler.proceed();");
handler.proceed();
}
});
相关文章推荐
- android webview 访问https页面 SslError 处理
- React Native之Android 5.0以下系统WebView访问https页面变成空白页
- android webview 访问https页面 SslError 处理
- android webview 访问https页面 SslError 处理
- android webview 访问https页面 SslError 处理
- 关于android webview中访问web页面带有upload上传控件的解决办法
- Android如何使用WebView访问https的网站
- Android APP 使用WebView访问服务器H5页面带上Cookie
- Android 7.0系统webview 显示https页面空白处理方法
- Android webview访问HTTPS web page如何忽略验证
- Android WebView 访问https显示空白页
- [android]webview访问jsp页面,能否从jsp页面获取数据
- Android WebView加载https页面不能正常显示资源问题
- Android如何使用WebView访问https的网站
- 【Android】WebView加载https页面不能正常显示资源问题
- 解决android webview 中打不开https页面
- Android 7.0系统webview 显示https页面空白处理
- Android 使用WebView访问https的url——处理SslError
- Android如何使用WebView访问https的网站
- android 7.0 使用 webview 访问 https 协议的网址,界面显示空白,其他android版本正常。