title: Android Activity and Service relationship - after Pause, after Stop
body: <p>Let's say Activity A is created and then A starts a Service S and binds itself to S.  S notifies A of updates which will cause the state of A to change.  <strong>What happens to A and S after Android pauses or stops A?</strong></p>
  
  <p>For instance:</p>
  
  <ul>
  <li>Does pausing A automatically unbind it from S (thus stopping S if A is the last thing bound to it?)</li>
  <li>Do updates from S cause A to be resumed?</li>
  <li>Do updates from S never get passed to A and no error occurs?</li>
  <li>Can S become aware that A is paused or stopped?  (for instance by a call to something like <code>A.isAsleep()</code>)</li>
  </ul>
  
  <p>Also, <strong>How do I handle the situation so that the "right thing" happens?</strong>  Do I unbind services in onPause() and re-bind upon onResume()?</p>