alarmmanager - How to design a scheduler alarm system using android -
i creating android app serve scheduler. client allowed enter schedules 1 month ahead.
for instance
monday 22/12/2016 2:30am go work tuesday 23/12/2016 4:00pm visit friend .....
now user allowed enter information local sqlite database of app.
please information in database, possible system send notification alarm user interface when time schedule due, when app has been closed?
i glad if can give ideas or links how go this. in advance.
yes possible.
you can store information in sqlite database. data database able information , set alarm pending intent
.
you can set both repeating , non repeating alarm.
use wake lock permission
in manifest keep screen on , awake lock condition , show alarm screen information.
with ringtonemanager
possible play music when alarm fires.
and importantly if phone restarts or put off , again put on when boot completes alarm service
set alarm automatically.
basically these main steps build alarm system. example see below repository in github
https://github.com/zahansafallwa/alarmclock
its bit of complex coding 1 more or less includes possible staffs can alarm manager in android
Comments
Post a Comment