5
私はAndroid webviewアプリケーションでデッドループに陥り、アプリケーションはonReceivedHttpAuthRequest関数でブロックされます。活動にWebView - onReceivedHttpAuthRequestは決して止まらない
mWeb.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
mProgressBar.setVisibility(View.GONE);
}
@Override
public void onReceivedHttpAuthRequest(WebView view,HttpAuthHandler handler, String host, String realm) {
if (isAdded())
handler.proceed(getResources().getString(R.string.username), getResources().getString(R.string.pass));
}
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
handler.proceed();
}
});
mWeb.loadUrl(mUrl);
何が 'handler.proceed(getResources()。のgetString(R.string.username)、getResources()。のgetString (R.string.pass)); 'do? –