活动报警的Andr​​oid获取列表列表、Andr、oid

2023-09-08 10:04:25 作者:二狗子

有没有办法在我们的应用程序来获取所有活动的报警列表中的Andr​​oid设备编程programmatically.Just点我到一些链接,可以帮助我基本上是试图给用户在浏览完报警在他的设备,所以我想在该设备的所有活动报警列表的工具。

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 be of help I am basically trying to give the user the facility of viewing all the alarms in his device so i want to get a list of all the active alarms in the device.

推荐答案

简短的回答:你不能

报警经理没有给出知名度,目前预定系统中的报警。使用警报管理每一个应用程序必须坚持,他们设置每个报警的状态。

The alarm manager gives no visibility to the alarms currently scheduled in the system. Every app that uses alarm manager must persist the state of each alarm that they set.

在这个问题Get在AlarmManager 活跃PendingIntents列表。和一个应用程序的可能的获取系统转储,并得到警报这样但这需要根。

However you can get a list via adb as described in this question Get list of active PendingIntents in AlarmManager. And an app could get a system dump and get the alarms that way but that would require root.