title: Stop unBound service in Android
body: <p>I have a service that autoupdates a database in a given time interval. To do this it gets information from the Internet.</p>
  
  <p>I need to have it unbound, so that It runs over all activities. But when the application is closed,  it would be nice to terminate the service. To prevent battery drain. How can this be achieved?</p>