On Fri, Jul 1, 2011 at 10:22 AM, Rutton <[email protected]> wrote: > AsyncTask is a bit an overkill, as you may want to call your urls > independently and then > AT would create a Thread for each REST call.
Actually, AsyncTask will use a thread out of a thread pool for each REST call. Performing multiple network operations in tandem on parallel threads is a common pattern -- Web browsers do this so it doesn't take a minute to download a Web page, for example. Whether or not it is appropriate in any given case is indeterminate, but I would not throw it out. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.5 Available! -- 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

