How to check if alarm is set

后端 未结 3 1473
眼角桃花
眼角桃花 2021-02-06 05:50

I\'m trying to check if my alarm is active or not. The alarmIsSet method will return false before the alarm is set, true when the alarm is set. So far so good, however, after th

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 06:10

    You just have to add

    pi.cancel();
    

    after

    am.cancel(pi);
    

提交回复
热议问题