In my Android application at some point I am starting some animation and make http request for data. Both of those actions are done different thread and after those two actions finish my application needs to perform some other action. My question is are there any good design patterns or solutions to do that?
Currently I have one idea of doing it - create controller which has two boolean flags and makes check on those two before performing action, but maybe there is some better way to solve this problem?