开发者

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 开发者_JAVA百科for all the tasks which are saved with today's date. How can I accomplished this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜