GamesActivityResultCodes | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Inherited Methods | [Expand All]
public final class

# GamesActivityResultCodes

extends Object

java.lang.Object
↳ | com.google.android.gms.games.GamesActivityResultCodes

## Class Overview

Result codes that can be set as result in Activities from the Client UI started with `startActivityForResult(Intent, int)`.

## Summary

Constants
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_INVALID_ROOM | Result code send back to the calling Activity when a RealTimeWaitingRoom cannot be displayed because the room does not exist,
int | RESULT_LEFT_ROOM | Result code sent back to the calling Activity when the user explicitly chose to "leave the room" from the real-time multiplayer "waiting room" screen.
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_SEND_REQUEST_FAILED | Result code sent back to the calling Activity when sending a request from the "send request" screen failed.
int | RESULT_SIGN_IN_FAILED | Result code sent back to the calling Activity when signing in fails.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final int RESULT_APP_MISCONFIGURED

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 (0x00002714)

#### public static final int RESULT_INVALID_ROOM

Result code send back to the calling Activity when a RealTimeWaitingRoom cannot be displayed because the room does not exist,

##### See Also

- `getWaitingRoomIntent(GoogleApiClient, Room, int)`

Constant Value: 10008 (0x00002718)

#### public static final int RESULT_LEFT_ROOM

Result code sent back to the calling Activity when the user explicitly chose to "leave the room" from the real-time multiplayer "waiting room" screen. (Note that if the user simply exits the "waiting room" screen by pressing Back, that does not indicate that the user wants to leave the current room. The waiting room screen will return `RESULT_CANCELED` in that case.)

##### See Also

- `getWaitingRoomIntent(GoogleApiClient, Room, int)`

Constant Value: 10005 (0x00002715)

#### 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 (0x00002713)

#### 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 (0x00002716)

#### 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 (0x00002711)

#### public static final int RESULT_SEND_REQUEST_FAILED

Result code sent back to the calling Activity when sending a request from the "send request" screen failed. The logs will contain more detailed information.

##### See Also

- `getSendIntent(GoogleApiClient, int, byte[], int, Bitmap, String)`

Constant Value: 10007 (0x00002717)

#### 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 (0x00002712)