Example usage for android.webkit WebViewClient ERROR_TIMEOUT

List of usage examples for android.webkit WebViewClient ERROR_TIMEOUT

Introduction

In this page you can find the example usage for android.webkit WebViewClient ERROR_TIMEOUT.

Prototype

int ERROR_TIMEOUT

To view the source code for android.webkit WebViewClient ERROR_TIMEOUT.

Click Source Link

Document

Connection timed out

Usage

From source file:Main.java

private static boolean canRetryWebView(Context context, int errorCode, String description, String failingUrl) {
    if (errorCode == WebViewClient.ERROR_CONNECT || errorCode == WebViewClient.ERROR_FAILED_SSL_HANDSHAKE
            || errorCode == WebViewClient.ERROR_HOST_LOOKUP || errorCode == WebViewClient.ERROR_TIMEOUT) {
        return true;
    } else {//from www .j a va 2  s. c om
        return false;
    }
}