I’m writing an application which will have two Activities, when the user presses the back button on the second activity a dialog should pop up asking the user to confirm the action. So how do I intercept this? I seriously doubt about this coz the backstack is a part of the OS itself. Has anyone found a workaround?
I’m writing an application which will have two Activities, when the user presses the
Share
In an activity you can just override
edit: that is api lvl 5+ :/ for 4 and below you gotta override onKeyDown()