Home Ask Login Register

Developers Planet

Your answer is one click away!

NewBIe February 2016

How to design a scheduler alarm system using android

I am creating an android app which will serve as a scheduler. The client is allowed to enter all his schedules for the 1 month ahead.

For instance

Monday 22/12/2016 2:30am Go for work Tuesday 23/12/2016 4:00pm Visit a friend .....

Now a user is allowed to enter all this information into the local sqlite database of the app.

Please with this information in the database, would it be possible for the system to send a notification with an alarm to the user interface when the time schedule is due, even when the app has been closed?

I would very glad if someone can give any ideas or links as to how to go about this. Thanks in advance.


Zahan Safallwa February 2016

Yes it is possible.

You can store you information in sqlite database. Then with data from database you will be able to get the information and set the alarm with Pending intent .

You can set both repeating and non repeating alarm.

Use wake lock permission in the manifest to keep the screen on and awake from lock condition and show your alarm screen with information.

With RingtoneManager it is possible to play some music too when alarm fires.

And most importantly if the phone restarts or put off and then again put on when the boot completes the alarm service will set all your alarm automatically.

Basically these are the main steps to build an alarm system. For an example see below repository in Github


Its a bit of complex coding but this one more or less includes all the possible staffs you can do with alarm manager in android

Post Status

Asked in February 2016
Viewed 2,730 times
Voted 9
Answered 1 times


Leave an answer

Quote of the day: live life