@Override public String toString() { return getErrorType().name() + ": " + getErrorCode(); } }
@Override public String getMessage() { return toString(); }
@Override public void onConnectionSuspended(int i) { postCallback(new GoogleApiClientException(ErrorType.ConnectionSuspended, i)); } });
@Override public void onConnectionFailed(ConnectionResult connectionResult) { postCallback(new GoogleApiClientException(ErrorType.ConnectionFailed, connectionResult.getErrorCode())); } });
protected GoogleApiClient getGoogleApiClient() { if (getActivity() == null) { postCallback(new GoogleApiClientException(ErrorType.NotAttachedToActivity, 1)); return null; postCallback(new GoogleApiClientException(ErrorType.ConnectionSuspended, i)); @Override public void onConnectionFailed(ConnectionResult connectionResult) { postCallback(new GoogleApiClientException(ErrorType.ConnectionFailed, connectionResult.getErrorCode()));