outofmemoryerror in android
<p>I have one running some methods  in doInBackground in AsyncTask ,which is calling webservices and inserting number of records  into the database , at the same user click on other screen then outOfmemoryError is coming I want to stop the background thread temporarily till the screen loads and then thread has to resume from it stopped such that the memory will release. can anybody tell me how to achieve this. 
Thanks in Advance.</p>
