0

What is the best way to exit complete Android application (not a single activity) when a button is pressed?

I've tried using finish() but it only closed the active activity.

vard
  • 4,057
  • 2
  • 26
  • 46

1 Answers1

0

The easiest way to exit the application is

 system.exit(0);
Nouman Ghaffar
  • 3,780
  • 1
  • 29
  • 37