Sorting days of the week into a list

Hi all,

I'm needing some help with the blocks of a page I am working on.

I've made Monday to Sunday into a list but I can not figure out how to get each day from the list to correspond with the actual weekday (do i use date picker and how?) so if the user selects the alarm to go off on a Monday, it will actually go off on a Monday.

I appreciate any help and thank you in advance!

Hi, the thing with app inventor is that it does not support sticky tasks. A sticky task is a thing which runs in the background on a phone. This is not supported by app inventor therefore you cannot set an alarm.

Just use the runtime button blocks to make the list, in the order you have, then you can use the indexes of that list to call the correct day of the week, e.g. index 1 = Monday, index 2 = Tuesday.

image

You can then use the any component (button) blocks to run actions.

You could look at Taifun's Alarm Extension if you need alarms when the app is in the background.

1 Like