My app has some gestures that the user needs to be familiar with and so I thought I should show a welcome screen the first time the user runs the app.
In the first line of Main activity's Activity_Create function, I check if the welcome screen has been displayed before and if not, I start the Welcome activity. The problem is, in the Main activity there are lots of asynchronous processes (like downloads) running. I am not sure but probably because of that, when the Welcome activity loads, it closes automatically in 2 seconds and the focus is back in Main activity.
I tried using StartActivity and CallSubDelayed2 to start the Welcome activity. Even tried adding a DoEvents after the commands but the result is always the same. Ideally the Welcome activity should be displayed and once the user closes it, the app should continue with the Main activity.
Any way to do this?
In the first line of Main activity's Activity_Create function, I check if the welcome screen has been displayed before and if not, I start the Welcome activity. The problem is, in the Main activity there are lots of asynchronous processes (like downloads) running. I am not sure but probably because of that, when the Welcome activity loads, it closes automatically in 2 seconds and the focus is back in Main activity.
I tried using StartActivity and CallSubDelayed2 to start the Welcome activity. Even tried adding a DoEvents after the commands but the result is always the same. Ideally the Welcome activity should be displayed and once the user closes it, the app should continue with the Main activity.
Any way to do this?