GooglePlayServicesAvailabilityException | 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
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

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

# GooglePlayServicesAvailabilityException

extends UserRecoverableAuthException

java.lang.Object
↳ | java.lang.Throwable
| ↳ | java.lang.Exception
|  | ↳ | com.google.android.gms.auth.GoogleAuthException
|  |  | ↳ | com.google.android.gms.auth.UserRecoverableAuthException
|  |  |  | ↳ | com.google.android.gms.auth.GooglePlayServicesAvailabilityException

## Class Overview

GooglePlayServicesAvailabilityExceptions are special instances of `UserRecoverableAuthException`s which are thrown when the expected Google Play services app is not available for some reason. In these cases client code can use `getConnectionStatusCode()` in conjunction with `getErrorDialog(int, android.app.Activity, int)` to provide users with a localized `Dialog` that will allow users to install, update, or otherwise enable Google Play services.

## Summary

Public Methods
int | getConnectionStatusCode()

[Expand] Inherited Methods
From class com.google.android.gms.auth.UserRecoverableAuthException
Intent | getIntent() Getter for an `Intent` that when supplied to `startActivityForResult(Intent, int)`, will allow user intervention.
From class java.lang.Throwable
final void | addSuppressed(Throwable arg0)
Throwable | fillInStackTrace()
Throwable | getCause()
String | getLocalizedMessage()
String | getMessage()
StackTraceElement[] | getStackTrace()
final Throwable[] | getSuppressed()
Throwable | initCause(Throwable arg0)
void | printStackTrace(PrintStream arg0)
void | printStackTrace(PrintWriter arg0)
void | printStackTrace()
void | setStackTrace(StackTraceElement[] arg0)
String | toString()
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)

## Public Methods

#### public int getConnectionStatusCode ()