-4

I used exitProcess(1) but it just goes back to the previous activity! I want to close every activity when I click the button.

1 Answers1

1

You can try

finish();
System.exit(0);