Example: there is an application, it has three activities and all three activities work with the database (read / write). condition: work with the database is conducted in a separate thread.
How more logical and more intelligent to write code for this?
At first, I wanted to isolate all the logic of work into a separate class (which is inherited from the Async Task), the data is transferred to it based on which it forms requests and returns a link to the data. Or it is better to do in each activity separate classes Async Task that will work separately from each other. Or are there options? How is this usually implemented?