I have a splash screen and if I press the back button while the splash activity is running this activity is closed but the next activity after the splash (after 2 seconds) will be open. I would like to set the back button to close the splash activity but to open immediately the next activity or to close the whole application.
Share
You need to override the back-button with this:
This will take you to the next Activity when you pres the button. If you want to close the app try this: