Skip to content Skip to sidebar Skip to footer

Is Android Async Task Slow?

Is android async task slow or am i doing something wrong? Here is what i do Log.e('Filler', 'before'); new DownloadListContent().execute('string'); Log.e('Filler', 'after'); and D

Solution 1:

Right, it does have limited pool of threads. On Honeycomb, the pool size is one, so you can't have two tasks at the same time. You can supply your own executor though, to have multiple tasks run in parallel. That might not improve performance though, so you should maybe think of restructuring your code a bit:

http://developer.android.com/reference/android/os/AsyncTask.html#executeOnExecutor(java.util.concurrent.Executor, Params...)

Post a Comment for "Is Android Async Task Slow?"