Android alarm is cancelled after closing the application

后端 未结 7 974
遥遥无期
遥遥无期 2020-12-03 04:45

I have a problem with AlarmManager, I set the code for scheduling a repeating alarm and after I run the application, the alarm runs fine. Even if I click on Home button (and

相关标签:
7条回答
  • 2020-12-03 05:36

    I've done this a few times, but wonder why ya'll are assigning a requestCode of 0; I'd think that giving your alarm a unique number would help a lot.

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