I have this app that prompts the user to input their password when it starts. After successful login the next activity is menu. While in menu if i press the back button i go back to the login activity. Is it possible to show the login activity once and not have it show up when the user presses the back button?
Flow is like this:
______
| |
AppStart -> |Login | -> (successful) -> Menu
|______| > (unsuccessful) |
^_________|<_____________| (Back button)
In your manifest, add the following attribute:
This will prevent it from being added to the activity stack.