Launcher -> LoginActivity -> MainActivity ---- // when not logged in
Launcher -> MainActivity ---- // when logged in
You cannot change the launcher behaviour in this way.
To achieve what you want to do simply check if the user is logged in or not in the onCreate(...)
method of the LoginActivity
. If the user is logged in than do the following...
startActivity(this, MainActivity.class);
finish();
If the user is not logged in then do what you need to do to log the user in then call the above code.