有什么方法可以在我们的应用程序中以编程方式获取 android 设备中所有活动警报的列表以编程方式.只需指出一些可以提供帮助的链接我基本上是在尝试让用户能够查看其设备中的所有警报,因此我想获得设备中所有活动警报的列表.
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.
推荐答案不,AFAIK 您不能以编程方式执行此操作,因此在 UI 中向用户显示该信息是不可行的.
No, AFAIK you can't do that programmatically so showing that info to a user in UI is not feasible.
但是,您可以通过以下方式转储警报数据,以供您参考
However for your own reference you can dump the alarm data via
adb shell dumpsys alarm您不需要 root 权限.
You don't need root permission for that.
但是你从上面得到的东西可能很难理解.为了完全理解转储,您应该在此处查看 morphatic 的答案.
But what you get from above could be very confusing to understand. In order to understand that dump completely you should check out morphatic's answer here.
更多推荐
Android 获取活动警报列表
发布评论