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
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.
|
GooglePlayServicesRepairableException(int connectionStatusCode,
String msg,
Intent
intent)
Creates a
GooglePlayServicesRepairableException.
|
| int |
getConnectionStatusCode()
Returns the
ConnectionResult
statusCode of the exception.
|
Creates a
GooglePlayServicesRepairableException.
| 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 |
Returns the ConnectionResult
statusCode of the exception.
This value may be passed in to
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.