AsyncTask - AsyncTask manipulate threads and / or handlers if you can do it better with Looper and stuff, why bother? AsyncTask is designed as a helper class around Thread and Handler, and should ideally be used for short operations (maximum seconds). .. , as you can indicate in production mode, is this going to take a lot of time? probably a bad network, a slow network, a stuck network, rebooting the phone - and all this will probably make your download either damaged or incomplete. I am an application user, and I get angry when I lose the bundle no matter what.
If you ask me, use
Service - Service starts regardless of what application / screen is visible and does, if it interacts with the user interface, if only it is available, if you do not continue loading and save it, AsyncTask not a common flow infrastructure. always use threads, that's cool, we all love it.
source share