back button's function on first activity
back button's function on first activity Normally when the back button is clicked it goes to the previous activity and if the current activity is the first activity, the application closes. I have a splash screen (that is logically my first activity) and then the menu activity loads. I want to close the program when the back button is pressed on my menu activity (as if it is the first activity) and avoid going back to the splash screen again, but I know that I should not exit the program. I was wondering what is the functionality of back button on the first activity? does it put the program to pause? try this stackoverflow.com/questions/3625394/… – Nuwan94 Jun 30 at 14:34 @Nuwan94 best solution +1....but I suggest to add a view group contains the splash screen and show it in his menu activity using Handler f...