Lets say that my activity has a list object containing material. This activity starts with several AsyncTasks. When these tasks are completed, they change this list (add material, for example) to their postExecute () methods. Should this list be thread safe?
My bet is that this is not necessary, because the code in the postExecute () methods runs in the user interface thread sequentially. Therefore, they cannot change the list in parallel. Is it correct?
source
share