Answer the question
In order to leave comments, you need to log in
How to correctly implement the architecture of a program section on Android?
There is MainActivity, a service for scheduling notifications, and a database with all scheduled notifications. What is the correct way to add and remove records to/from the database: in the activity or directly in the service itself, when calling the add/remove notification method?
Answer the question
In order to leave comments, you need to log in
I would do it in the service, because the activation has a higher chance of being killed by the system than the service.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question