start async task from onhandleintent
问题 Should we start async task from within onHandleIntent() method of IntentService ? I read that onHandleIntent() runs in worker thread so will it be safe to start asyncTask from there?? 回答1: IntentService s already are background-processes; there's no need to start an AsyncTask from there. Also, starting an AsyncTask is 'safe' from anywhere; it's a helper class that helps you multithread. Just make sure you don't manipulate View s in the doInBackground() -method of your AsyncTask if you use it