How to navigate back to main screen without showing Splash Screen again?

Hi everyone,

I have one screen (Screen1) that contains both a Splash Screen (a Vertical Arrangement visible at app start) and the main app content (another Vertical Arrangement initially hidden). After the splash finishes, I hide the Splash Arrangement and show the main app content.

In the main content, there’s a button that navigates to Screen2.

In Screen2, I have a Back button that should take the user back to Screen1 without showing the Splash Screen again.

However, when I use the block “open another screen Screen1”, it reloads Screen1 and the Splash Screen shows again, which I don’t want.

How can I navigate back to Screen1 so it does not show the Splash Screen again?
Thanks a lot!

1 Like

Take a look at this guide:


I think simply closing Screen2 instead of launching another instance of Screen1 should be enough in your case, but follow the guide in the future for easier and more resource efficient screen management.

2 Likes

Use the open another screen with start value block and pass a value of your choice, for example the boolean value true

Then in Screen1.Initialize use an if-then statement

If not get start value
Then show splash

Taifun

1 Like

From main screen use ‘open another screen’ and from all other screens just use ‘close screen’ which will move user to main screen from where the user ‘opened another screen’.

1 Like

Thank you, but this method didn’t work for me. It just reloads the main screen again and then returns to the same screen I wanted to go back from.

Thank you, but there seems to be something wrong with the code. It didn’t execute as expected, and I feel like I might have arranged the blocks incorrectly. Could you please check them for me?


Thank you, but I didn’t quite understand the method. Could you please explain it in more detail?

this is how we open an screen with or without an start value. start value is given to detect something specific and do specific with start value. see example below…

now screen 2 is opened from main screen1. We don’t need to use ‘open another screen’ to move again to main screen! Now we just close this screen. see example below…

image

1 Like

Thank you, but I still don’t understand.
I couldn’t quite grasp it.

Do I need to use all the code blocks shown in the picture, or is that just an explanation?

Just to clarify:
I have a main screen that shows a splash screen when the app starts. After the timer ends, the splash screen disappears, and a vertical arrangement with all the main components appears, along with a custom title bar.

There is a button on this main screen that opens Screen 2.

In Screen 2, I want the back button to return me directly to the vertical arrangement containing all the main components and the custom title bar — without showing the splash screen again.

So, do I need to use all the blocks shown in the picture to achieve this, or only some of them?

when BackButton click > Close Screen

Those all are example, only last block relates to your needs, use that last block in Screen2

1 Like

When I do this, by placing close screen on the back button click, it first goes back to the splash screen, then to the vertical arrangement containing the rest of the app components.
But I don’t want that — I want it to skip the splash screen and show the main screen directly without the splash screen.

Have you closed Screen1? OR have you used WhenOtherScreenClosed event? Show me your blocks of screen1

1 Like

If you have anydesk software installed on your pc I can help you instantly.

1 Like

Unfortunately, I don’t have that program.
Here are the blocks I use in Screen 2 to make the back button return the user to the first screen:

@Noor_XD PLESE SHARE THE RELEVANT BLOCKS

1 Like

Yes, you mean these blocks (Screen1.Initialize and the related blocks). Here they are.


Also share clock block


share blocks using which you open screen2

Are you using companion? If yes then build apk and then test.