Does onPostExecute execute if the AsyncTask has been cancelled?
onPostExecute
AsyncTask
If it does execute, is it safe to say that I should always ask if the task
After checking the AsyncTask source code it seems that onPostExecute is invoked even if the task is cancelled. However, before calling onPostExecute the result is set to null (?) if the task has been cancelled.
Edit: @bain provides an updated answer.