@Override public void onConnectionFailed(ConnectionResult connectionResult) { Log.e(TAG, "LocationServices connection failed"); state = State.DISCONNECTED; listener.onGeofenceApiConnectionFailed(connectionResult.getErrorMessage()); }