I am working on app has 3 activitys , I want to close the app totally when I click on button in Main Actvity.
I have used finishAffinity(); System.exit(0);
// and finish();
closeBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
finishAffinity();
System.exit(0);
// finish();
}
});
I want to close the app (all activitys), but the app just minimized and still working.