Android alarm is cancelled after closing the application

后端 未结 7 1008
遥遥无期
遥遥无期 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:30

    That's a normal behavoiur ! The alarm will stop working when your app goes to onDestroy().

提交回复
热议问题