Get all alarms saved in the alarm application

JaVadid picture JaVadid · Jun 30, 2010 · Viewed 16.5k times · Source

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

Answer

seanhodges picture seanhodges · Jun 30, 2010

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.