added Alert Dialog for exit

I added alert box to second activity under show alert button.
if user press Yes then program will exit else not.