0
下面是代碼:的Android的WebView:onreceivedHttpError的StatusCode == 404
@Override
@SuppressWarnings("deprecation")
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
****
}
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {
***
}
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onReceivedHttpError(WebView view, WebResourceRequest request, WebResourceResponse errorResponse) {
***
}
onReceivedHttpError總是得到404錯誤(errorResonse.getStatusCode()== 404),但網址甚至在Chrome
做工精細感謝您的任何意見。