I used exitProcess(1) but it just goes back to the previous activity! I want to close every activity when I click the button.
Asked
Active
Viewed 5,183 times
-4
-
1Use `ActivityCompat.finishAffinity(this)` – AskNilesh Sep 04 '18 at 11:09