AlarmManger not working with date

后端 未结 1 1021
闹比i
闹比i 2020-12-22 09:27

Hi I am trying to make reminders above api 11. I did all things with and working on time also means if i set time , its working but if i want to set reminder for tomorrow or

相关标签:
1条回答
  • 2020-12-22 09:56

    You are passing wrong moth. You are passing 10 and want to test for October. You will need to pass it considering 0-11 for January - December.

    Which means,

    change your month to 9.

    calendar.set(Calendar.MONTH, 9);
    

    That will make the alarm date of October. So make changes and test.

    A reference

    Hope this helps.

    0 讨论(0)
提交回复
热议问题