As you already know, our application is dealing with Notes and Todos. The current application implementation keeps our data locally stored in the SQLite database. This data will be synchronized with the backend instance running on some remote server. All operations related to the synchronization will be performed silently in the background of our application. All responsibility will be given to the service, which we will define now. Create a new package called service and a new class MainService that will extend the Android service class. Make sure your implementation looks like this:
class MainService : Service(), DataSynchronization { private val tag = "Main service" private var binder = getServiceBinder() private var executor = TaskExecutor.getInstance(1) override fun onCreate() { super...