You should use AsyncTask specifically. Service here is a big overhead.
In general, AsyncTask is used when you do small things (3-5 seconds), and it is normal to show a progress dialog. Services are designed for long-term processing of background tasks.
source
share