title: How to keep an Android app running indefinitely?
body: <p>I am writing an Android app which must always be running in the background until the user exits it from the app's menu. But now I notice that in Android after some time my app is stopped by itself without user intervention.</p>
  
  <p>Any idea how to make sure my app will always be running in the background?</p>