i have a button to close my app with this code:
finish();
the problem is that this button doesn\'t exit of my app... it simply closes the current intent ant retu
By default Android's design doesn't favour exiting an application, but rather allows the OS to manage it. You can bring up the Home application by it's corresponding Intent:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);