Re: [android-developers] Can we create two ThreadPoolExecutor running on android?

2011-09-02 Thread Dianne Hackborn
Personally I think there is no reason to do this. AsyncTask just has a facility to deliver results back to the main thread. This is nothing tied to UI. The main thread just happens to be where UI is running as well as many other things such as the callbacks to Service itself. If you don't want

[android-developers] Can we create two ThreadPoolExecutor running on android?

2011-08-30 Thread usher
AsyncTask is managing a thread pool with 5 core thread. Once we start to use AsyncTask, it will start to set up this thread pool on android phone. The reason I don't want to AsyncTask is because I am going to create a service, and start threads from service, which means there is not much UI