Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all alarms saved in the alarm application

Tags:

android

alarms

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.

Thanx

like image 332
JaVadid Avatar asked Jun 30 '10 07:06

JaVadid


1 Answers

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.

like image 153
seanhodges Avatar answered Sep 20 '22 19:09

seanhodges