GooglePlayServicesRepairableException

public classGooglePlayServicesRepairableExceptionextendsUserRecoverableException

GooglePlayServicesRepairableExceptions are special instances of UserRecoverableExceptions 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 GoogleApiAvailability.getErrorDialog(android.app.Activity, int, int)to provide users with a localizedDialogthat will allow users to install, update, or otherwise enable Google Play services.

Public Constructor Summary

Public Method Summary

int
getConnectionStatusCode()
Returns theConnectionResult statusCodeof the exception.

Inherited Method Summary

Public Constructors

publicGooglePlayServicesRepairableException(int connectionStatusCode,Stringmsg,Intent intent)

Parameters
connectionStatusCode a code for theConnectionResult statusCodeof the exception
msg a string message for the exception
intent an intent that may be started to resolve the connection issue with Google Play services

Public Methods

public intgetConnectionStatusCode()

Returns theConnectionResult statusCodeof the exception.

This value may be passed in to GoogleApiAvailability.getErrorDialog(android.app.Activity, int, int)to provide users with a localizedDialogthat will allow users to install, update, or otherwise enable Google Play services.