1

According to this question there is a limit on the number of running asynctasks. I'm using asynctasks in several activities and in each activity I cancel running asynctask (if any) before execute a new one. but still I have blocking problem and I doubt the asynctask are completely canceled. My question is that "is there any way to see all running and blocking asynctasks?"

thanks in advance!

Community
  • 1
  • 1
Ali
  • 6,808
  • 3
  • 37
  • 47

1 Answers1

0
  1. AsyncTask is execute In the ThreadPool. Before HoneyComb the default size is 5. after the default size is 1.
  2. When you call the AsyncTask.cancel() . the Thread is not exactly cancelled.
Miral Dhokiya
  • 1,720
  • 13
  • 26
Changwei Yao
  • 13,051
  • 3
  • 25
  • 22
  • 1
    Ok, but how can I see if the asynctask is not exactly cancelled. and more generally is there any way to see all the running asynctasks? – Ali May 13 '12 at 06:24