Is it possible when the user clicks on the back button to shut down the whole application, not just the activity but the whole application?
I am currently using the following code:
@Override
public void onBackPressed() {
finish();
System.exit(0);
}
The problem with this code is that it shuts down the current activity rather than the application, and it often gets an error.
Probably I was opening activities one over the other without paying attention, maybe that's the problem, I'm pretty new to android