How to implement yearly and monthly repeating alarms?

前端 未结 3 1002
遥遥无期
遥遥无期 2020-12-09 00:21

I want to set monthly and yearly alarm in my app.I did this for weekly. AlarmManager.INTERVAL_DAY helped me for that.But i could not find good way to implement monthly and y

3条回答
  •  爱一瞬间的悲伤
    2020-12-09 00:49

    To add to Laurent's response. To abstract from calculating recurrence manually I suggest to take a look at this RFC-2445 implementation. It works fine on Android and can save you a lot of pain.

提交回复
热议问题