Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exit / Close Application [duplicate]

Tags:

android

Possible Duplicate:
Quitting an application - is that frowned upon?

I've written an android app, that has 5 activities. Each activity is started by the activity before it. When the user gets to the last activity, i have added an "EXIT" button. When this button is pressed, i call finish(); However this only closes the current activity, and the app returns to the previous activity. Is there an easy way to terminate all activities when exit button is pressed.

thanks

like image 509
Coops5575 Avatar asked Aug 05 '26 23:08

Coops5575


1 Answers

Usually it is not a good idea to add "exit" feature to an app. That's not in Android nature. Read the topic first.

like image 87
Konstantin Burov Avatar answered Aug 08 '26 15:08

Konstantin Burov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!