Search code examples
androiddateandroid-activityalarmmanager

set repeated reminder that repeats every month


I am taking two dates from the user in my android code. I want to set reminder for every month which are in between those two dates. If first date is : 1st jan 2015 and other date is 1st Feb 2016 then I want to set reminder for the 1st day every month in between these two dates. I tried using alarm manager but couldnt able to repeat alarm. Please help. thank you


Solution

  • One method might be to have your alarm receiver set the next alarm when it is called (e.g. it activates on 1 Jan 2015 and sets the next one for 1 Feb 2015), so you're always setting one ahead.