获取保存在警报应用程序中的所有警报 [英] Get all alarms saved in the alarm application
问题描述
是否有可能获得保存在 android 警报应用程序中的警报列表?我正在制作一个应用程序,它只需要显示在警报应用程序中设置的警报.
Is it by any chance possible to get a list of alarms saved in the alarm application of android ? I am making an application which just needs to show the alarms set in the Alarm application.
谢谢
推荐答案
这篇文章 关于这个.无法保证 AlarmClock 应用程序会安装在您的应用程序所在的每台设备上.例如,许多 HTC 手机将其替换为 HTC 自己的世界时钟"应用程序.
There is a good explanation on this post regarding this. There are no guarantees that the AlarmClock app will be on every device your app is installed on. For example, many of the HTC phones replace it with HTC's own "World Clock" app.
但是,假设现有的 AlarmClock 应用程序存在,您应该能够从其内容提供商处获取光标.以这个项目为例.
However, assuming the stock AlarmClock app is present, you should be able to get a cursor from its content provider. See this project as an example.
这篇关于获取保存在警报应用程序中的所有警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!