Hello, I have this timer, which when it reaches 90 without having any input on the user's screen, it goes back to screen1, the problem is that it is not working, before it worked, when it reached about 1.5 min without input the screen changed to screen1. Can anyone help?
Try/test by moving the SET timer enable true to the click event (after the set global Counter).
I have the impression that when I trigger the "click event", the code does not return to the " Horario initialize" event, since the screen has already initialized.
Your timer interval is 90000, i e. 90 seconds and you are counting to 90, so after 135 minutes, which is 2 hours and 15 minutes you like to close the current screen and go back to Screen1, is my understanding correct?
Is your app up and running all that time or do you expect this to work also when the app is in the background?
So how do you suggest I do it? I've already seen the link that sent it, for reference I have screen1 > screen2 > screen3 how do I do it so that when the timer expires screen3 go directly to screen1. And yes my app is to stay running all that time.
As I said, the layout I have is the following
screen1 > screen2 > screen3,
if I use the close screen block the screen will change to screen2, my goal is that it changes directly to screen1.
If Screen1 is actually closed, yes. Otherwise "Open another screen" will open another instance of Screen1, so there will be two Screen1s in the App's allocated memory. Also, if leaving a Screen, it is best to stop any Clock Timers that are on it.
A procedure cannot be named "procedure".
Have you considered using Virtual Screens? They a much better solution for multi-screen Apps.
When we define virtual screens, we use one 'real' App Inventor Screen (most often Screen1). Screen-sized Vertical Arrangements on it are displayed/hidden as required - they are the Virtual Screens. This is generally a better approach for multi-screen Apps, they share data without having to "pass" it between screens and it also reduces code duplication, making the App more efficient and the code easier to follow if you have to return to it at a later date.
So, instead of separate "houses", virtual screens are "rooms" of the same "house".