title: how to keep an Intent service running
body: <p>I have two examples of Intentservice.  One is the Download example in the commonsware book.  the other is at <a href="http://www.vogella.com/articles/AndroidServices/article.html#servicecommunication_handler" rel="noreferrer">http://www.vogella.com/articles/AndroidServices/article.html#servicecommunication_handler</a>.
  Both of these examples show the service executing a finite task and they both apparently destroy themselves by running to the end of the scope of the onHandleIntent event.</p>
  
  <p>The service I am writing has to have events and listen for things.  One is a LocationListener listening for GPS movement.  Another makes Posts to a REST service and listens for replys.  I want it to run until a time has elapsed or until it was told to quit by the activity that started it.</p>
  
  <p>How do I keep it running?  Where, for instance, do I put my implementation of LocationListener?
  Thanks, Gary</p>