Durga Dutt
Durga Dutt

Reputation: 4113

Android Background Services

I am creating an "ToDoTask" application in android. I have created feature of adding task and deleting task with a particular date. I have saved these task list into database. Now I want to add a feature according to which if any task is in incomplete status than a notification will be generated for all the tasks which are saved with today's date. How can I accomplished this?

Upvotes: 0

Views: 109

Answers (1)

advantej
advantej

Reputation: 20325

Register a PendingIntent with AlarmManager that will run say once a day. Start off an IntentService when the PendingIntent is fired. in this Service, you can check if any of your tasks are incomplete for the day. If so, use NotificationManager to trigger a notification.

Upvotes: 2

Related Questions