java - Should I use AlarmManager or JobScheduler for this? -
i have table in database each row describes schedule. example:
id | code | day | time ___________________________________ 1 1 mon 8 2 27 wed 15
in other words, every monday @ 8 am, function corresponding code 1 called. every wednesday @ 3 pm, function corresponding code 27 called, etc.
what's right way call these tasks @ proper times in android? i've seen both alarmmanager , jobscheduler don't know 1 more appropriate use this.
i don't need times super precise (having events trigger +/- few seconds or minutes designated times not huge deal), need them trigger whenever possible.
alarm manager more appropriate 1 way or other trying maps upon requirement of creating alarms.
Comments
Post a Comment