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 2024-10-31 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 2024-10-31 UTC."],[[["`GamesActivityResultCodes` provides result codes for Activities started with `startActivityForResult` within the Google Games Client UI."],["These codes indicate the outcome of operations, such as sign-in, licensing checks, or network interactions."],["Common result codes include `RESULT_SIGN_IN_FAILED`, `RESULT_LICENSE_FAILED`, `RESULT_NETWORK_FAILURE`, `RESULT_RECONNECT_REQUIRED`, and `RESULT_APP_MISCONFIGURED`."],["Developers should handle these codes in their calling Activities to provide appropriate feedback to users."],["Result codes help diagnose issues and ensure smooth integration with the Google Games services."]]],["`GamesActivityResultCodes` defines result codes for Activities started from the Client UI. These codes, set as results, signal various outcomes. `RESULT_APP_MISCONFIGURED` indicates improper game configuration. `RESULT_LICENSE_FAILED` means the game is unlicensed. `RESULT_NETWORK_FAILURE` reflects a server network error. `RESULT_RECONNECT_REQUIRED` signifies a need to reconnect the `GoogleApiClient`. `RESULT_SIGN_IN_FAILED` is for sign-in issues. Each constant has a specific integer value.\n"]]