title: Should I extend the Binder class or use a Messenger?
body: <p>In my app I've designed it to have a Service that gets data constantly (for good reason, it's from some sensors) and provides it to two clients:</p>
  
  <ul>
  <li>A UI Activity to display the live data</li>
  <li>Another service that logs the data</li>
  </ul>
  
  <p>At any time, both, one or neither of these clients may be running.</p>
  
  <p>I think that this service should be a Bound service, whereas the logging service is a Started service.</p>
  
  <p>The Android <a href="http://developer.android.com/guide/topics/fundamentals/bound-services.html#Creating" rel="noreferrer">documentation</a> for this says I should extend the Binder class, or use a Messenger if I want to access the service from another process.</p>
  
  <p>This service, the logging service and the UI Activity will all be in the same apk, so they'll presumably be in the same process - but what is going to be the best solution here? I suspect the documentation might not be taking into account the possibility that I could have two clients in the same process as the service.</p>
  
  <p>Thanks</p>