S
S
Sergey Shilovsky2019-07-24 15:46:20
Android
Sergey Shilovsky, 2019-07-24 15:46:20

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

1 answer(s)
A
Alexander Yudakov, 2019-07-24
@First_Spectr

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 question

Ask a Question

731 491 924 answers to any question