GooglePlayServicesRepairableException

public class GooglePlayServicesRepairableException extends UserRecoverableException


GooglePlayServicesRepairableExceptions are special instances of s which are thrown when Google Play services is not installed, up-to-date, or enabled. In these cases, client code can use getConnectionStatusCode in conjunction with getErrorDialog to provide users with a localized android.app.Dialog that will allow users to install, update, or otherwise enable Google Play services.

Summary

Public fields

final int

Public constructors

GooglePlayServicesRepairableException(
    int connectionStatusCode,
    String msg,
    Intent intent
)

Creates a GooglePlayServicesRepairableException.

Public methods

int

Returns the ConnectionResultstatusCode of the exception.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)
String
From com.google.android.gms.common.UserRecoverableException
Intent

Getter for an Intent that when supplied to startActivityForResult, will allow user intervention.

Public fields

connectionStatusCode

public final int connectionStatusCode

Public constructors

GooglePlayServicesRepairableException

public GooglePlayServicesRepairableException(
    int connectionStatusCode,
    String msg,
    Intent intent
)

Creates a GooglePlayServicesRepairableException.

Parameters
int connectionStatusCode

a code for the ConnectionResultstatusCode of the exception

String msg

a string message for the exception

Intent intent

an intent that may be started to resolve the connection issue with Google Play services

Public methods

getConnectionStatusCode

public int getConnectionStatusCode()

Returns the ConnectionResultstatusCode of the exception.

This value may be passed in to getErrorDialog to provide users with a localized android.app.Dialog that will allow users to install, update, or otherwise enable Google Play services.