My question is little bit different than these type of question. I need to remove or clear my activity stack then start a new activity. I don\'t think it is a clear_top flag
It's bit old question, but maybe someone else will stumble upon it while searching answer to similar problem.
You should start Login activity with flags: Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK - flag NEW_TASK may have a little bit confusing name, but it will actually create new task just if it doesn't exist (otherwise current task will be used) - and CLEAR_TASK will clear it from all previous activities.