After app activity resumed the app is going back to screen1 automatically

Do not know why but the above approach in closing the screen and opening a new is causing the problem. I changed the procedure like in the picture below and works. If you wish give it a try

image

1 Like

try this

blocks

Have you even tried the process, u have posted?

1 Like

Okay, I have tried it but the result is same.

U may check it :point_right: https://appetize.io/app/k14tyq3ctnkk11tm1puz4ddu68?device=nexus5&scale=100&orientation=portrait&osVersion=8.1

For me it works perfect with no problem. I click the button, it goes to screen2 and stays there . Tested on Mi A1 android 9

1 Like

Not like that.

Step One :point_right: Launch the app then click the button to open the screen2

Step Two :point_right: Minimize the app and Resume the app again.

*** Expected result : The screen2 should be there after u resume the app.

**** Issue : The app is reopening the screen1 automatically

Try this one ElectricApricotEmu.apk (5.0 MB)

Sorry to say but the issue is still there.

U may Test :point_down:

Check if this :point_down: work
ElectricApricotEmu.apk (5.0 MB)

Edit: Strange it shows the same result as it is been discussed here during the first launch of the app only(this is same with Boban’s apk also).

After the first launch, if you exit the app(even from Recent apps screen) then relaunch it and try again the problem seems to be solved(i.e. on resume screen2 opens as expected)

Yeah that’s true & bizarre.

Nope…The result is same as it was before.

Yes I know that but as I told earlier, the problem is during first launch only, when directly open your app after install else it behaves as it should from second launch

I also mentioned it before.

1 Like

Try this one: @Coder007
switchScreensFirstLaunch.apk (5.0 MB)

2 Likes

Surprisingly… it works! What kind of changes have you made to make it works like this good?

Link : https://appetize.io/app/3e0p2bb4chn924ea850yhb16pm?device=pixel4&scale=75&orientation=portrait&osVersion=10.0

1 Like

1 Like

Sorry to say but the solution you have presented is not a proper fix(maybe there is no fix) of the issue. It’s just a process of automatic redirection of the app from screen1 to screen2 after resuming the app.

**** In this situation, the stuff on screen1 will reload and data on screen2 will also reload.

******* Maybe @Kodular should look into this matter.

Where exactly is the problem?

No, see here:

Screen1

Screen2

switchScreensFirstLaunch.aia (6.1 KB)

I think I arrived late, but I don’t know why, I had a similar problem and solved it simply by alternating the blocks “close screen” (placing inside the if) and “opening another screen” (placing outside the if).

I still have the same problem, this is something strange. I thought it was the only one that happened to him :joy:

1 Like