I have following Activities(imagine Pinterest app):
WellcomeActivity with two buttons - Sign up and Log in
LogInActivity you come here from WellcomeActivity
SignUpActivity you come here from WellcomeActivity
MainActivity - you come here after you either logged in or signed up.
When user signed up or logged in I call finish()
in LogInActivity
or SignUpActivity
and start MainActivity
. But WellcomeActivity
remains in the stack, so when I press Back button I'm again in WellcomeActivity
.
I can't call finish()
in it when I start LogInActivity
or SignUpActivity
, because if user decides to go back, he will exit the app.
Now, how do I design Activity transitions to have that Pinterest-like logic?