When I press an installed APK app icon on two different phones, it flashes the app screen very, very quickly and returns to the phone desktop. So I press it a second time and it runs OK. I exit the app and press the icon and I get the same “flash” and program closes. I press the icon again and the app starts up just fine.
Different problem. The behavior is the same on my S8 which has no problems downloading my app. This particular problem has been happening for several iterations of my app, the download error just started today on my S9 only.
You’re switching screens incorrectly. What’s happening is it’s on Screen1 so when you close the screen, it’s not actually crashing, just closing the app. It’s just unable to open a new screen because the app is already closed.
The problem you had can be explained like this:
After Screen2 has been opened, Screen1 is closed. If the app is now closed (button → close application), Screen2 is closed and it also tries to close the main screen (Screen1). Since this has already been closed, the task remains in the background and will then be executed the next time the app is started. Therefore, the app will be closed immediately the next time it is started (Screen1 closed).
But what works for me now is to pretty much go back to the original method surrounded by a procedure, ie, the middle blocks in the image.
So my question is when would I ever use the third set of blocks? Why would I close the first screen when opening a second screen if it doesn’t really close until you go back to the first screen? Sorry to be so obtuse, but it’d be nice to understand this issue.