@Beta public class GooglePlayServicesAvailabilityIOException extends UserRecoverableAuthIOException
Beta GooglePlayServicesAvailabilityException into an IOException so it can be
caught directly.
Use getConnectionStatusCode() to display the error dialog. Alternatively, use
getCause() to get the wrapped GooglePlayServicesAvailabilityException. Example
usage:
} catch (final GooglePlayServicesAvailabilityIOException availabilityException) {
myActivity.runOnUiThread(new Runnable() {
public void run() {
Dialog dialog = GooglePlayServicesUtil.getErrorDialog(
availabilityException.getConnectionStatusCode(),
myActivity,
MyActivity.REQUEST_GOOGLE_PLAY_SERVICES);
dialog.show();
}
});
| Constructor and Description |
|---|
GooglePlayServicesAvailabilityIOException(com.google.android.gms.auth.GooglePlayServicesAvailabilityException wrapped) |
| Modifier and Type | Method and Description |
|---|---|
com.google.android.gms.auth.GooglePlayServicesAvailabilityException |
getCause() |
int |
getConnectionStatusCode()
Returns the error code to use with
GooglePlayServicesUtil.getErrorDialog(int, Activity, int). |
getIntentaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GooglePlayServicesAvailabilityIOException(com.google.android.gms.auth.GooglePlayServicesAvailabilityException wrapped)
public com.google.android.gms.auth.GooglePlayServicesAvailabilityException getCause()
getCause in class UserRecoverableAuthIOExceptionpublic final int getConnectionStatusCode()
GooglePlayServicesUtil.getErrorDialog(int, Activity, int).Copyright © 2010-2016 Google. All Rights Reserved.