web视图以https使用loadURL显示空白页视图、空白页、web、loadURL

2023-09-12 22:30:49 作者:叼着棒棒糖闯天下

我用的WebView访问HTTPS链接。页面始终显示为空白。我发现萝用它的方式

I used webview to visit https link. the page always show blank. i found the way to dill with it

public class WebViewClient extends Object
{
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) 
{
     handler.proceed();
}
}

这是做工精细。

但我用API的Andr​​oid 2.1,上述方法是属于至Android 2.2。任何人都可以给我一些建议吗?

But i used API Android 2.1, the above method is belongs to Android 2.2. Can anyone give me some suggestion?

推荐答案

您好我解决,并且在博客中对这个问题在这里:

Hi I solved and blogged about this issue here:

http://damianflannery.word$p$pss.com/2010/09/28/android-webview-with-https-loadurl-shows-blankempty-page/

问候, 达米安