开发者

Android Alarm Reminder

I have an app which is loading upcoming dates (like Birthdays) fro开发者_C百科m an SQLite database and showing it on a ListView. That works fine. What I now want is to inform the user regular by an Alarm or Toast or something without starting the application. The user has the only option when to inform: on the same day or 1 day before and the time! Has someone an idea how to realize this? Maybe a Service or a Timer, or both? I would be very pleased about some tips.


Take a look onto AlarmManager. Also note that the service doesn't persist alarms between sessions so you'll need to re-setup them after device boot. Another option may be using Google calendar API to create birthday events, notification will be handled by Google calendar app then.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜