Alarms

duneplodder

Active Member
Licensed User
Longtime User
Quick background:
I want to add alarms to my software to remind me of insulin injections & I'm trying to decide the best approach.
The requirements are:

Once a day for my basal insulin - plus "snooze" type option.
Four times a day for my bolus insulin - plus "snooze" type option.
(- all repeated each day.)

In addition I want a "snooze" type alarm for some other screens e.g. to confirm I've actually injected.

I will store the times of the main injections in a config /Map file. I was planning to sort & trigger each alarm in order using a service. However the "snooze" options may mean they overlap. I can probably manage this, but would it be easier/practical/acceptable to run 2 or 3 separate services e.g. AlarmService1, AlarmService2, AlarmService3 for the various purposes?
Regards,
Robert
 

duneplodder

Active Member
Licensed User
Longtime User
I've experimented with creating a couple of different alarm services and it seems to work OK.
Before I go too far, I was hoping someone more knowledgeable than me would comment on whether this is a sensible way to go?
Robert
 
Upvote 0

lagore

Active Member
Licensed User
Longtime User
I presume you are looking at the option StartServiceAt to launch your alarm/app to remind you, this would get reconfigured either for the next shot or else 'snooze' if that was clicked.
 
Upvote 0
Top