A task reminders android

demand:

Run to create multiple reminders, set a reminder each time, arrived at the designated time out of the window to remind

Each alert you of an execution button to save the recording is performed after the click, and the day no longer triggers a reminder window

 

2 program

A:

Use a "front-end service" --StartFrontServer, run a task every two minutes in the service, the task read all reminders from the database sqlite, then determine the need to activate a reminder, every time, only activate one

The reminder will be activated update LastNotifyTime = the current time, and in the next half an hour inside the trigger again (if the task is still not executed), the form used AlarmAlertWakeLock to remind In the case of screen lock Show reminder form.

B:

 Consider each reminder is linear and activate only one, then the system clock AlarmManager, a user's job to be executed the next time,

CURD each task or tasks to be triggered at a need to be recalculated to be triggered, if the situation two tasks of ties, then from a selected,

After each task is triggered, a 30-minute longer triggers.

Guess you like

Origin www.cnblogs.com/wdfrog/p/11747305.html