GamesActivityResultCodes
Stay organized with collections
Save and categorize content based on your preferences.
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-09-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eGamesActivityResultCodes\u003c/code\u003e provides result codes for Activities started using \u003ccode\u003estartActivityForResult\u003c/code\u003e within the Google Play Games Client UI.\u003c/p\u003e\n"],["\u003cp\u003eThese codes indicate the status of game operations, such as license verification, network connectivity, and sign-in attempts.\u003c/p\u003e\n"],["\u003cp\u003eThe codes are integers defined as constants like \u003ccode\u003eRESULT_APP_MISCONFIGURED\u003c/code\u003e, \u003ccode\u003eRESULT_LICENSE_FAILED\u003c/code\u003e, and others.\u003c/p\u003e\n"],["\u003cp\u003eUpon 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.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGamesActivityResultCodes\u003c/code\u003e help developers handle various scenarios when integrating their games with Google Play Games services.\u003c/p\u003e\n"]]],["`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"],null,[]]