title: What's the difference between continueWith() and onSuccess() in Bolts framework?
body: <p>I am using <a href="https://github.com/BoltsFramework/Bolts-Android" rel="nofollow">Bolts framework</a> in my Android project. I read the documents several times, but I am still confused about the difference between continueWith() and onSuccess(), because the callback method and the return value are all the same. For example,</p>
  
  <pre><code>Task task = ParseGeoPoint.getCurrentLocationInBackground(10*1000);
  </code></pre>
  
  <p>And what's the difference between these two methods?</p>
  
  <pre><code>task.onSuccess(new Continuation&lt;ParseGeoPoint, Object&gt;() {
      @Override
      public Object then(Task&lt;ParseGeoPoint&gt; task) throws Exception {
          Log.d(TAG, "task done");
          return null;
      }
  });
  
  task.continueWith(new Continuation&lt;ParseGeoPoint, Object&gt;() {
      @Override
      public Object then(Task&lt;ParseGeoPoint&gt; task) throws Exception {
          Log.d(TAG, "task done");
          return null;
      }
  });
  </code></pre>