1-Feb-14 (Created: 1-Feb-14) | More in 'Fragments and Dialogs'

Pondering AsyncTask and IntentService in the #AndroidSDK

They are both used to offload work from the main thread. All components in Android run on the main thread. the UI runs on the main thread. the broadcast receivers run on the main thread. Android Services run on the main thread. So it is really useful to have some facility that can offload work from the main thread.

In the #AndroidSDK both #AsyncTask and #IntentService can do this work. Are there any guidelines as to which is appropriate when?