获取保存在报警的应用程序的所有报警应用程序、存在

2023-09-12 23:06:27 作者:→零度ぁ空間↑

是不是由任何机会可以得到保存在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的应用程序是present,你应该能够得到一个光标从它的内容提供商。请参见这个项目作为一个例子。

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.