Example usage for org.json.zip JSONzip zipEmptyObject

List of usage examples for org.json.zip JSONzip zipEmptyObject

Introduction

In this page you can find the example usage for org.json.zip JSONzip zipEmptyObject.

Prototype

int zipEmptyObject

To view the source code for org.json.zip JSONzip zipEmptyObject.

Click Source Link

Document

The value code for an empty object.

Usage

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static Dialog getErrorDialog(int errorCode, Activity activity, int requestCode,
        OnCancelListener cancelListener) {
    Builder message = new Builder(activity).setMessage(m113c(activity, errorCode));
    if (cancelListener != null) {
        message.setOnCancelListener(cancelListener);
    }//from w w w  .j a va 2 s .c  om
    OnClickListener fdVar = new fd(activity, m109b((Context) activity, errorCode), requestCode);
    CharSequence d = m115d(activity, errorCode);
    if (d != null) {
        message.setPositiveButton(d, fdVar);
    }
    switch (errorCode) {
    case JSONzip.zipEmptyObject /*0*/:
        return null;
    case Std.STD_FILE /*1*/:
        return message.setTitle(C0192R.string.common_google_play_services_install_title).create();
    case Std.STD_URL /*2*/:
        return message.setTitle(C0192R.string.common_google_play_services_update_title).create();
    case Std.STD_URI /*3*/:
        return message.setTitle(C0192R.string.common_google_play_services_enable_title).create();
    case Std.STD_CLASS /*4*/:
    case Std.STD_CURRENCY /*6*/:
        return message.create();
    case Std.STD_JAVA_TYPE /*5*/:
        Log.e("GooglePlayServicesUtil",
                "An invalid account was specified when connecting. Please provide a valid account.");
        return message.setTitle(C0192R.string.common_google_play_services_invalid_account_title).create();
    case Std.STD_PATTERN /*7*/:
        Log.e("GooglePlayServicesUtil", "Network error occurred. Please retry request later.");
        return message.setTitle(C0192R.string.common_google_play_services_network_error_title).create();
    case Std.STD_LOCALE /*8*/:
        Log.e("GooglePlayServicesUtil", "Internal error occurred. Please see logs for detailed information");
        return message.create();
    case Std.STD_CHARSET /*9*/:
        Log.e("GooglePlayServicesUtil", "Google Play services is invalid. Cannot recover.");
        return message.setTitle(C0192R.string.common_google_play_services_unsupported_title).create();
    case Std.STD_TIME_ZONE /*10*/:
        Log.e("GooglePlayServicesUtil", "Developer error occurred. Please see logs for detailed information");
        return message.create();
    case Std.STD_INET_ADDRESS /*11*/:
        Log.e("GooglePlayServicesUtil", "The application is not licensed to the user.");
        return message.create();
    case Std.STD_INET_SOCKET_ADDRESS /*12*/:
        Log.e("GooglePlayServicesUtil", "The date of the device is not valid.");
        return message.setTitle(C0192R.string.common_google_play_services_unsupported_title).create();
    default:
        Log.e("GooglePlayServicesUtil", "Unexpected error code " + errorCode);
        return message.create();
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static String getErrorString(int errorCode) {
    switch (errorCode) {
    case JSONzip.zipEmptyObject /*0*/:
        return "SUCCESS";
    case Std.STD_FILE /*1*/:
        return "SERVICE_MISSING";
    case Std.STD_URL /*2*/:
        return "SERVICE_VERSION_UPDATE_REQUIRED";
    case Std.STD_URI /*3*/:
        return "SERVICE_DISABLED";
    case Std.STD_CLASS /*4*/:
        return "SIGN_IN_REQUIRED";
    case Std.STD_JAVA_TYPE /*5*/:
        return "INVALID_ACCOUNT";
    case Std.STD_CURRENCY /*6*/:
        return "RESOLUTION_REQUIRED";
    case Std.STD_PATTERN /*7*/:
        return "NETWORK_ERROR";
    case Std.STD_LOCALE /*8*/:
        return "INTERNAL_ERROR";
    case Std.STD_CHARSET /*9*/:
        return "SERVICE_INVALID";
    case Std.STD_TIME_ZONE /*10*/:
        return "DEVELOPER_ERROR";
    case Std.STD_INET_ADDRESS /*11*/:
        return "LICENSE_CHECK_FAILED";
    case Std.STD_INET_SOCKET_ADDRESS /*12*/:
        return "DATE_INVALID";
    default://from  www .  j  a v a  2 s. co  m
        return "UNKNOWN_ERROR_CODE";
    }
}