title: Restarting a service in the onDestroy method
body: <p>I have made an app in which a service runs in the background. <em>But if the android system requires resources, it will <strong>stop</strong> the service</em>. However I may still require my service to run.</p>
  
  <p>Is it a bad practice to restart the service (if condition relevant to my app still holds true) in the <strong>onDestroy</strong> method of my service?</p>
  
  <p>How can I make sure my service runs indefinitely (if condition relevant to my app still holds true)? Or atleast on high priority?</p>