S
S
Sevak Avetisyan2015-01-24 13:56:29
Android
Sevak Avetisyan, 2015-01-24 13:56:29

How to perform a scheduled action?

Good day! There is such a task: you need to display notifications in the status bar according to the schedule. As far as I understand, for this you need to use services, in addition, this service must live in the background and work after a reboot. There are many built-in services, but my view settled on this one . How appropriate is it to use? What are the alternatives?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bimeg, 2015-01-24
@bimeg

This service is exactly what it was invented for. But there is a jamb - all alarms are reset after reboot. Therefore, you need to subscribe to BOOT_COMPLETE and restore the necessary alarms after reboot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question