Launch Second Screen
Learn and practice how to simulate a long-running operation and open a new screen in this lesson.
We'll cover the following...
Flow overview
When a user clicks the login button we will perform a data validation flow, and if the data is valid, proceed to:
- Simulate long-running operation for 2 seconds
- Open MainActivity
- Finish LoginActivity
Simulate a long-running operation
In this lesson, we are not going to do a real login HTTP call, so let’s just simulate it via delay of 2 seconds before opening MainActivity. In a real application, we would need to ...