Thursday, April 28, 2011

[android-developers] Re: problem with asyntask

Sorry. My english is limited. I try to pura an example.

Asyntask1

(When asyntask 1 finish depending of boolean result)

If asyntask result is true execute asyntask 2
If asyntask result is false execute asyntask 3


These is what I want

Many thanks
On 29 abr, 02:48, Streets Of Boston <flyingdutc...@gmail.com> wrote:
> I think you mean that one asynctask's background process has to finish
> before another asynctask's background process can start.
> This is per design in pre-Donut and in Honeycomb and later. All AsyncTasks
> use a pool of only one thread. If one asynctasks is 'using' it, others can't
> and have to wait.
> If you need a larger pool of threads, use the method *public final
> AsyncTask<Params, Progress, Result> executeOnExecutor (Executor exec,
> Params... params) *to execute your background tasks.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate