Alarm Pending Alarm doesn't cancel

前端 未结 3 505
予麋鹿
予麋鹿 2021-01-18 16:40

I\'ve read through many questions and answers on Stackoverflow, and many of which just emphasize on the .cancel() and the special unique ID. However, now matter

3条回答
  •  执笔经年
    2021-01-18 17:03

    I suspect there is something wrong with the last(4th) argument of the method PendingIntent.getService(pickTime.this, RQS_1, intent, 0); in your code.

    Try using PendingIntent.FLAG_CANCEL_CURRENT instead of 0, it should work.

提交回复
热议问题