Get all alarms saved in the alarm application

后端 未结 3 944
长发绾君心
长发绾君心 2020-12-14 04:23

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 Al

3条回答
  •  春和景丽
    2020-12-14 05:08

    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.

    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.

提交回复
热议问题