I have such a puzzle.
The user, when he first opens the application, enters the first activation and is registered. I save it locally and when it opens the application a second time, then the java class of this first activation immediately checks if this id was and if so, the intent opens the main activation.
Everything seems logical, but I have a button on this basic activation when I click on that the first activation should open to the user, and here’s the question, because as I said on this first activation, I have a check that sees that the user is already registered and again sends it to the main activation.
How to be here?
I need to have a check, and so that I can press the button again to open the first screen ...
I just had the idea to create ahead of the first activation, splash activation in which to check whether this user was registered, if yes, then he goes to the main screen, and from it he can press the button and return to the first one, and if splash activation makes a check and there is no such ID, then it gets on the first activation.
But the problem is that I really do not want to sculpt one more activi ...
What can be done here?