Hello all, I have a problem regarding the Close Application block. When I click the back button on my phone, It should close the application. I did the blocks like this-
When Screen1. Backpressed
close application
Now when I click the back button, the screen is closed and opens the previously opened screen.
As I wrote above. On many screens I have found blocks that open screens and no block that closes the screen. After using the application for a while, you will have multiple instances of the same screens open until you run out of memory for the application. Also, problems with closing applications that you already noticed.
Remember that once opened, the screen stays open even when you cannot see it. When you open the same screen a second time, you already have two of the same screens open. this causes a lot of problems.
I implemented the solution you proposed and its working. Thank you for your quick support
I saw this in the help documentation- App developers should never close Screen1 or use this block to return to Screen1. Use the close screen block instead.
I don't see any reasons why screen1 cannot be closed, nor can I return to screen1 with this method. Tested and with screen1 it also works. So to avoid problems, also apply this to screen1. If you need to, you can test and you will see that it's ok.
Of course you can leave screen1 open. Then wherever you call "screen1" use "close screen".
There are many methods. The most important thing is not to have several of the same screens open.
Hello: I have chosen to create several Vertical Arrangements within Screen1, sizing each one of them in percentage to 100% and making them visible or invisible to change them. I don't know if it's correct, but it works for me.