udacity / AdvancedAndroid_Shushme

136 stars 367 forks source link

T0X.04-Solution-Geofencing #7

Open cetonek opened 7 years ago

cetonek commented 7 years ago
@Override
  public void onResult(@NonNull Result result) {
      Log.e(TAG, String.format("Error adding/removing geofence : %s",
               result.getStatus().toString()));
   }

I am not sure why are we logging this as error by default. Is'nt it just a callback informing on the result of registration/unregistration? - not necesarilly saying that the operation must have failed. Looking at the logs now, I am actually get success: E/Geofencing: Error adding/removing geofence : Status{statusCode=SUCCESS, resolution=null}