I want to show an Alert Dialog
when the user clicks on the up button of ActionBar. I have implemented onBackPressed()
already. What I want to do now is trigger same action as for pressing Back
button when user clicks the Up
button from ActionBar.
I tried using onNavigateUp()
. However, it just returns me to the parent activity without showing the Alert Dialog.