Android App quits automatically if its idle for some hours
<p>I created an new Android app and succeeded  in its working. Its all functionality are working fine. While starting it will ask use name and password.<br>
What my problem was "If my Application is idle for some 4 to 5 hours, then automatically it get quit , while restarting its again asking to login"<br>
I need to  know how to avoid automatic quit of my app.
I'm sorry if its simple or already asked quetions.</p>
