java.lang.Object | |
↳ | com.google.android.gms.common.ConnectionResult |
Contains all possible error codes for when a client fails to connect to Google Play services.
These error codes are used by GooglePlayServicesClient.OnConnectionFailedListener
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DATE_INVALID | The device date is likely set incorrectly. | |||||||||
int | DEVELOPER_ERROR | The application is misconfigured. | |||||||||
int | INTERNAL_ERROR | An internal error occurred. | |||||||||
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 connection 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 connection was successful. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a connection result.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Indicates the type of error that interrupted connection.
| |||||||||||
A pending intent to resolve the connection failure.
| |||||||||||
Returns true if calling
startResolutionForResult(Activity, int)
will start any intents requiring user interaction. | |||||||||||
Returns true if the connection was successful.
| |||||||||||
Resolves an error by starting any intents requiring user
interaction.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The device date is likely set incorrectly. This error is recoverable by the user updating the date.
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.
An internal error occurred. Retrying should resolve the problem.
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 connection 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 to connect
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(int, Activity, 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(int, Activity, 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(int, Activity, 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 or it
may call startResolutionForResult(Activity, int)
to
prompt the user to sign in. After the sign in
activity returns with RESULT_OK
further attempts to connect
should succeed.
The connection was successful.
Creates a connection result.
statusCode | The status code. |
---|---|
pendingIntent | A pending intent that will resolve the issue when started, or null. |
Indicates the type of error that interrupted connection.
SUCCESS
if no error occurred.
A pending intent to resolve the connection failure. This intent can be started with
startIntentSenderForResult(IntentSender, int, Intent, int, int, int)
to present UI to solve the issue.
Returns true if calling startResolutionForResult(Activity, int)
will start any intents requiring user interaction.
Returns true if the connection was successful.
Resolves an error by starting any intents requiring user
interaction. See SIGN_IN_REQUIRED
, and
RESOLUTION_REQUIRED
.
activity | An Activity context to use to resolve the issue. The activity's
onActivityResult method will be invoked after the user is done. If the
resultCode is RESULT_OK , the application should try to
connect again. |
---|---|
requestCode | The request code to pass to onActivityResult. |
IntentSender.SendIntentException | If the resolution intent has been canceled or is no longer able to execute the request. |
---|