Android alarm is cancelled after closing the application

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

    Forcing your application to close is not the correct way to close an app and may give you incorrect behavior.

    This question might also be of some help.

提交回复
热议问题