title: Ending an Android Service started by fragment
body: <p>I am trying to end a service started by my fragment.</p>
  
  <p>I tried to end the service in onDestroyView but my service stopped when i switched fragments.
  I need it to stop when my application closes.</p>
  
  <p>How do I stop service in onDestroy of the activity containing the fragment?</p>