Sunday, January 31, 2010

Re: [android-developers] Re: Multi-threaded http requests cause exception

> Petroleam is right about AsyncTask using a thread-pool of only one
> thread on 1.5. Higher versions of Android use a pool of more than one
> thread.
>
> You can do something similar with ExecutorService and FutureTask
> classes (java.util.concurrent; i believe that AsyncTask is based upon
> these classes) and tell the ExecutorService to use Thread-pools of any
> size.

I have a version of AsyncTask for Android 1.5 that eliminates the
one-thread limitation:

http://github.com/commonsguy/cwac-task

--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


--
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