At the 1st version, I would like my app to remind the user for somethings through alarm clock, such as take for medicine and drink water.
Exp:
~ Remind after - 2 hours
~ Repeat for - 3 times
When I set the reminder, it's 9am, so the alarm will ring at 11am, 1pm and 3pm
The functions ran successfully
By the way, the alarm will straight away ring after 2 hours of the current time, so I added the "start from" option in the 2nd version. So that user can choose a time to start the alarm.
However, the "repeat for" function can't work in the 2nd version!
Exp:
~ Start from - 9am
~ Remind after - 2 hours
~ Repeat for - 3 times
The alarm will only ring at 11am and doesn't repeat
For the difference of the two versions, I added the timepicker in ver 2.
Ver 1: The alarm set based on the current time
Ver 2: The alarm set based on the time picker value
For your third question, I'm sorry I can't really understand
Debug your blocks to find out, what is the hour and minute for each alarm you are trying to set...
Also if you set several alarms directly one after the other, the underlying API might get overwhelmed...
EDIT: you should set the different alarms asynchronously, which means after the first alarm has been set (AfterSet event), then set the 2nd alarm, and after the 2nd alarm has been set, then set the 3rd alarm
For an example of an asynchronous processing, see this example App Inventor Tutorials and Examples: Webprefetch File by File | Pura Vida Apps