GooglePlayServicesRepairableException

public class GooglePlayServicesRepairableException extends UserRecoverableException

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 localized Dialog that will allow users to install, update, or otherwise enable Google Play services.

Public Constructor Summary

Public Method Summary

int
getConnectionStatusCode()
Returns the ConnectionResult statusCode of the exception.

Inherited Method Summary

Public Constructors

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

Parameters
connectionStatusCode a code for the ConnectionResult statusCode of 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 int getConnectionStatusCode ()

Returns the ConnectionResult statusCode of the exception.

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