Page Summary
-
GooglePlayServicesAvailabilityException is a specific type of UserRecoverableAuthException thrown when Google Play services are unavailable.
-
Client code can use
getConnectionStatusCode()withGooglePlayServicesUtil.getErrorDialog()to prompt users to install, update, or enable Google Play services. -
The class inherits methods from UserRecoverableAuthException, Throwable, and Object.
-
The main public method is
getConnectionStatusCode()which returns an integer status code.
GooglePlayServicesAvailabilityExceptions are special instances of UserRecoverableAuthExceptions
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
GooglePlayServicesUtil.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.
Public Method Summary
| int |