Android 获取活动警报列表 [英] Android get list of active alarms

查看:15
本文介绍了Android 获取活动警报列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在我们的应用程序中以编程方式获取 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 获取活动警报列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆