S
S
Sergey Chuprin2015-02-22 21:44:03
Android
Sergey Chuprin, 2015-02-22 21:44:03

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

1 answer(s)
K
Konstantin, 2015-02-23
@KChernenko

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 question

Ask a Question

731 491 924 answers to any question