I am looking to find a way to manage multiple threads inside Asyntask.
I need to synchronize my local database with server updates. This can be big data that can be obtained using swap.
Can someone tell me what is the preferred way to control the generation flows in a loop inside asyntask so that it can display the execution dialog until the whole thread is complete.
I am a little worried about the local database object and its synchronization during the execution of various threads in order to download data from the server and save / update to the local database.
Note. I cannot download all the data from the server in one server call.
Thanks in advance.
source
share