AsyncTask will always run even if app is destroyed?
问题 I have an application and because you can't do network operations on the main thread I'm using AsyncTask , so the question is once I execute() the AsyncTask and right after that I finish() the activity, and maybe the user will finish() the whole app, so what I'm wondering is: Will AsyncTask always finish doInBackground() and onPostExecute() even if the app is closed as long as execute() was called when the app was running? 回答1: You will be able to test this. And yes It does. If execute was