Firstly, I've tried almost all the solutions about this issue but I can not find solution.
Question: When user press exit button in my application I want to kill all application. There is a few methods like finish(); or System.exit(0); If I use on MainActivity, they are work. I want this, If I MainActivity or A Activity or B Activity doesnt matter which Activty when I press exit button just kill all application and go back phones menu.