获取保存在警报应用程序中的所有警报 [英] Get all alarms saved in the alarm application

查看:24
本文介绍了获取保存在警报应用程序中的所有警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能获得保存在 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屋!

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