For some special situations, for example, after the user has log in, the history stack must be empty. The unique situation which allow the user see the login in screen is when the user log out. For this situation, the history stack must be cleaned.
To do so, add the follow flag to the Intent
Intent startNewIntent = new Intent(this, NewActivity.class);
For more information: