I am trying to make an alarm clock like thing with Mit App Inventor 2 and Arduino Uno. So with that in mind, i created a button to bring out a new screen to choose a few days of a week. This is because i want it to be able to select a few days and not daily or once a week. On the new screen, i have put checkbox for monday to sunday and a checkbox for daily. After i checked checkbox for daily, i will click a button to close screen. Then, i will get back to screen1 and one of the invisible textbox will have its text changed. Then, i will pick a with time picker and after time is selected, it will change another invisible textbox's text. An on or off button will only appear if both of the textbox has the same text. But the problem is the textbox that supposed to change its text when the day is picked and the screen2 will reinitialise and the checkbox will all became unchecked. Also i would gladly accept suggestion to refine my project.
Thank you for time and attention.