handle long running application
<p>I want to develop a application which will continue to run in background for infinity time.
but my application stop running after 1 or 2 days.</p>

<p>I m using service for this which will start a thread to run continuously.</p>

<p>Is there is any other way to handle long running application??</p>

<p>Please help.</p>
