I have a splash screen activity when I run the application. the finish () function is launched on the splash screen, so the user will no longer see the splash screen when they press BACK from the last break activity. But instead of directly exiting the application, I want the application to display an exit splash screen that has different images than the startup splash screen, after which the application will be directly terminated.
So, I want it to be like this: Screensaver 1 (Start) → Activity A → Activity B → (Click Back) → Show Activity A → (Click again) → Screen Saver 2 (End)
How to do it?
Do I need to redefine the return button in Activity A or is there another way to show a new action when the user clicks the back button on event A?
source
share