In my app i am starting activities one after the another and not finishing any activity before calling another. But when user presses logout button then i want to finish all the activities from the stack and start login activity.
Activity Login(finish & call) --> Activity B --> Activity C--> Activity D --> Logout -->Acitivity Login.
If user presses back key on login activity then he returns to Activity C in my case... but i want to avoid that.