I want to implement the back button functionality in my application. In application whenever I\'m clicking on back button in middle my control is going to login page direct
If your concern is about removing the login activity from the history stack.
Execute finish(); in your login activity when you start any other activity from that