Android get list of active alarms

前端 未结 6 1007
广开言路
广开言路 2021-01-01 10:04

Is there any way to get a list of all the active alarms in the android device programmatically in our application programmatically.Just point me out to some links that can b

6条回答
  •  有刺的猬
    2021-01-01 10:26

    You can get the next alarm that is scheduled (docs)

    getSystemService(AlarmManager::class.java).nextAlarmClock.triggerTime
    

    Returns the time at which the alarm is going to trigger. This value is UTC wall clock time in milliseconds

提交回复
热议问题