Changed AsyncTask to IntentService.