title: Using ResultReceiver in Android
body: <p>Fundamentally, I would like to establish a callback to an Activity from an IntentService.  My question is very similar to the one answered here:</p>
  
  <p><a href="https://stackoverflow.com/questions/3197335/android-restful-api-service">Restful API service</a></p>
  
  <p>However, in the answer code, the activity code is seen as implementing a ResultReceiver.  Unless I'm missing something, ResultReceiver is actually a class, so it cannot perform this implementation.</p>
  
  <p>So essentially, I'm asking what would be the correct way to wire up a ResultReceiver to that service.  I get confused with Handler and ResultReceiver concepts with respect to this.  Any working sample code would be appreciated.</p>