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 finishdoInBackground()
andonPostExecute()
even if the app is closed as long asexecute()
was called when the app was running?