android repeating alarm, should repeat on monthly basis and on same day for each month so on after its set

前端 未结 2 788
忘了有多久
忘了有多久 2021-01-23 04:05

alarm should repeat on monthly basis, once a month on same date for each month so on after its set like if i place alarm on october 31, then it should repeat on 31 of months hav

2条回答
  •  猫巷女王i
    2021-01-23 05:05

    You should use cal.getActualMaximum(Calendar.DAY_OF_MONTH));. This gives you the maximum date for each month irrespective of the month.

提交回复
热议问题