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 to do stuff in these callbacks, you don't need to.

On Tue, Aug 30, 2011 at 9:30 AM, usher <[email protected]> wrote:

> 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 updates from task. However, asynctask has to been created and
> execute on UI thread.
>
> So I am going to create another different thread pool which will be
> used to manage this kind of threads. What I am worrying about is that
> if I create another thread pool with 5 core threads, would that be too
> much threads(10 core threads) running on the android? will that slow
> it down and cause bad performance?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to