Following the deprecation of the Google Sign-In API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.
While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2 starting June 2025.
GamesActivityResultCodes
Constant Summary
int |
RESULT_APP_MISCONFIGURED
|
Result code sent back to the calling Activity
when the game is not properly configured to access the Games service. |
int |
RESULT_LICENSE_FAILED
|
Result code sent back to the calling Activity
when the game is not licensed to the user. |
int |
RESULT_NETWORK_FAILURE
|
Result code sent back to the calling Activity
when the server request resulted in a network error. |
int |
RESULT_RECONNECT_REQUIRED
|
Result code sent back to the calling Activity
when a reconnect is required. |
int |
RESULT_SIGN_IN_FAILED
|
Result code sent back to the calling Activity
when signing in fails. |
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
Result code sent back to the calling Activity when the game is not properly
configured to access the Games service. Developers should check the logs for more
details.
Constant Value: 10004
public static final int
RESULT_LICENSE_FAILED
Result code sent back to the calling Activity when the game is not licensed to the
user.
Constant Value: 10003
public static final int
RESULT_NETWORK_FAILURE
Result code sent back to the calling Activity when the server request resulted in a
network error.
Constant Value: 10006
public static final int
RESULT_RECONNECT_REQUIRED
Result code sent back to the calling Activity when a reconnect is required.
The GoogleApiClient
is in an inconsistent state and must reconnect to the service to resolve the issue.
Further calls to the service using the current connection are unlikely to succeed.
Constant Value: 10001
public static final int
RESULT_SIGN_IN_FAILED
Result code sent back to the calling Activity when signing in fails.
The attempt to sign in to the Games service failed. For example, this might happen
if the network is flaky, or the user's account has been disabled, or consent could not
be obtained.
Constant Value: 10002
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-24 UTC.
[null,null,["Last updated 2025-01-24 UTC."],[[["`GamesActivityResultCodes` provides result codes for Activities started using `startActivityForResult` within the Google Play Games Client UI."],["These codes indicate the status of game operations, such as license verification, network connectivity, and sign-in attempts."],["The codes are integers defined as constants like `RESULT_APP_MISCONFIGURED`, `RESULT_LICENSE_FAILED`, and others."],["Upon receiving a result code, developers can take appropriate action based on the outcome, like reconnecting to the service or prompting the user for sign-in."],["`GamesActivityResultCodes` help developers handle various scenarios when integrating their games with Google Play Games services."]]],["`GamesActivityResultCodes` defines result codes for Activities started from the Client UI. These codes, returned via `Activity.startActivityForResult`, indicate various outcomes. `RESULT_APP_MISCONFIGURED` (10004) signals improper game configuration. `RESULT_LICENSE_FAILED` (10003) means the user is unlicensed. `RESULT_NETWORK_FAILURE` (10006) denotes a network error. `RESULT_RECONNECT_REQUIRED` (10001) indicates an inconsistent connection requiring reconnection. `RESULT_SIGN_IN_FAILED` (10002) means sign-in failed.\n"]]