Answer the question
In order to leave comments, you need to log in
How to switch to the desired screen when the application starts?
It is necessary that when the application starts, the authorization screen, or another screen, opens.
I found two main solutions:
1) Create a separate start screen, in which you decide which screen to open next
2) Make the authorization start screen and switch to another screen in onCreate if authorization is not needed
The second option seems faster to me - there is no extra screen with markup, less delay before displaying content. But SRP is violated.
Answer the question
In order to leave comments, you need to log in
The main screen opens for me first, where a person works after authorization.
More often, the user is already authorized and it is this scenario that we optimize in terms of application launch speed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question