Possible Duplicate:
how to stop ASyncTask thread in android
I have created an app which has an synch task doing something in the background. In my OnPostExecute function I created an intent to start an activity. The App is working perfectly fine till now. Now I wanted to stop that Asynch Task when the new actvity starts. How can I do that? Please help ......