detect default alarm clock application alarms

后端 未结 5 2130
深忆病人
深忆病人 2021-02-20 18:34

I would like to know if there is a way (probably a system broadcast) to know that the alarm clock default application is now start ringing.

if not - I\'ll be satisfied a

5条回答
  •  隐瞒了意图╮
    2021-02-20 19:13

    You can't query AlarmManager for a list of commands which is what you would need to do to achieve this.

    The closest you can get to finding a list of alarms would be to use dumpsys adb shell dumpsys alarm, but obviously you can't do that in code.

提交回复
热议问题