Android alarm is cancelled after closing the application

后端 未结 7 1035
遥遥无期
遥遥无期 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.

提交回复
热议问题