App switches to random screen instead of shutting down

Hello! (Good morning/evening, here, in Poland, it’s 10 p. m.)
I have a problem with closing my app by using “close application” block.
Instead of shutting down, it blinks like during shutting down, but then immediately opens on random screen of app.

“Close the app” is button 1, “Stay in this app” is button 2.

Those are blocks:

Actually you are not switching your screens properly

Yeah I know lmao. Everything in this app is pretty… shi**y. I hate to do this kind of things, but I am forced to, and along with this, it’s my first “app” I have ever created in my whole life.

And… I am really stupid. It’s still not working.
I can quit app with “back” button or “close the app” button while being only on home screen of the app, but when I will open just one more, it won’t close, but blink in this weird way.

You can read more here about screens App Inventor Tutorials | Pura Vida Apps

Note: if you only use the open another screen and never the close screen block, you will run out of memory after a while. Also reopening an already opened screen is a bad idea. For example if you open Screen1 twice, you also have to close your app twice!

1 Like

It makes now so much sense… Thanks a lot! I will change every “open another screen” in previous buttons to “close screen”.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.