Android 获取活动警报列表

编程入门 行业动态 更新时间:2024-10-24 04:35:51
本文介绍了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 获取活动警报列表

本文发布于:2023-11-27 03:56:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   列表   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!