Application crashes when I use it after leaving it idle for a long time
<p>I am working on Android. I have made an application.</p>

<p>I used these following things in my application.</p>

<ol>
<li>timers</li>
<li>threads</li>
<li>call APIs which are returning data regularly.</li>
</ol>

<p>My application is a little bit large, so I unable to upload here code. I installed the apk into my android device. This application is running successfully.</p>

<p>When I launch my application on the device and keep it idle for a long time and then again use it, a crash occurs.</p>

<p>I am unable to find out the cause for this crash.</p>
