java.lang.Object | |
↳ | com.google.android.gms.common.api.CommonStatusCodes |
![]() |
Common status codes that are often shared across API surfaces.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | API_NOT_AVAILABLE |
This constant is deprecated.
Use API_NOT_CONNECTED instead.
|
|||||||||
int | API_NOT_CONNECTED | The client attempted to call a method from an API that failed to connect. | |||||||||
int | CANCELED |
The result was canceled either due to client disconnect or cancel() .
|
|||||||||
int | DEVELOPER_ERROR | The application is misconfigured. | |||||||||
int | ERROR | The operation failed with no more detailed information. | |||||||||
int | INTERNAL_ERROR | An internal error occurred. | |||||||||
int | INTERRUPTED | A blocking call was interrupted while waiting and did not run to completion. | |||||||||
int | INVALID_ACCOUNT | The client attempted to connect to the service with an invalid account name specified. | |||||||||
int | LICENSE_CHECK_FAILED | The application is not licensed to the user. | |||||||||
int | NETWORK_ERROR | A network error occurred. | |||||||||
int | RESOLUTION_REQUIRED | Completing the operation requires some form of resolution. | |||||||||
int | SERVICE_DISABLED | The installed version of Google Play services has been disabled on this device. | |||||||||
int | SERVICE_INVALID | The version of the Google Play services installed on this device is not authentic. | |||||||||
int | SERVICE_MISSING | Google Play services is missing on this device. | |||||||||
int | SERVICE_VERSION_UPDATE_REQUIRED | The installed version of Google Play services is out of date. | |||||||||
int | SIGN_IN_REQUIRED | The client attempted to connect to the service but the user is not signed in. | |||||||||
int | SUCCESS | The operation was successful. | |||||||||
int | SUCCESS_CACHE | The operation was successful, but was used the device's cache. | |||||||||
int | TIMEOUT | Timed out while awaiting the result. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The client attempted to call a method from an API that failed to connect. See
addApiIfAvailable(Api extends Api.ApiOptions.NotRequiredOptions>, Scope...)
.
The result was canceled either due to client disconnect or cancel()
.
The application is misconfigured. This error is not recoverable and will be treated as fatal. The developer should look at the logs after this to determine more actionable information.
The operation failed with no more detailed information.
An internal error occurred. Retrying should resolve the problem.
A blocking call was interrupted while waiting and did not run to completion.
The client attempted to connect to the service with an invalid account name specified.
The application is not licensed to the user. This error is not recoverable and will be treated as fatal.
A network error occurred. Retrying should resolve the problem.
Completing the operation requires some form of resolution. A resolution will be available
to be started with startResolutionForResult(Activity, int)
. If the result
returned is RESULT_OK
, then further attempts should either complete or
continue on to the next issue that needs to be resolved.
The installed version of Google Play services has been disabled on this device. The calling
activity should pass this error code to getErrorDialog(Activity, int, int)
to get
a localized error dialog that will resolve the error when shown.
The version of the Google Play services installed on this device is not authentic.
Google Play services is missing on this device. The calling activity should pass this error
code to getErrorDialog(Activity, int, int)
to get a localized error dialog that
will resolve the error when shown.
The installed version of Google Play services is out of date. The calling activity should
pass this error code to getErrorDialog(Activity, int, int)
to get a localized
error dialog that will resolve the error when shown.
The client attempted to connect to the service but the user is not signed in. The client may
choose to continue without using the API. Alternately, if hasResolution()
returns true the client may call
startResolutionForResult(Activity, int)
to prompt the user to sign in. After
the sign in activity returns with RESULT_OK
further attempts should succeed.
The operation was successful.
The operation was successful, but was used the device's cache. If this is a write, the data will be written when the device is online; errors will be written to the logs. If this is a read, the data was read from a device cache and may be stale.
Timed out while awaiting the result.