I am developing the application in which i want to close whole application on button click. I know in android we should not think about to close the application because andr
Try this:
Intent intent = new Intent(Activity3.this, FinishActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); finish();