Launch Second Screen

This lesson will cover how to simulate a long-running operation and open a new screen.

Flow overview #

When a user clicks the login button, we will perform a data validation flow, and if the data is valid, proceed to:

  1. Simulate long-running operation for 2 seconds
  2. Open MainActivity
  3. Finish LoginActivity

Get hands-on with 1200+ tech skills courses.