I'm trying to force close my app in order to hide what user did. I'm using the next code (that is half-working). It disappears from the screen but in when I press the button of the open apps (the button on the bottom, next to home and back buttons) I still can see it. Do you guys know what is the best way to kill the app completely?
finish();
moveTaskToBack(true);
System.exit(0);
I'm gonna try to explain it better: The thing is i have an activity, when i press the specified Button it opens another one that has a timer. if the user doesn't do a combination before the timer expires i want to force close all the app. The thing is that doing what I wrote in the code, my app minimizes and when I press the button of the bottom (the one to see all my open apps) I still can see it is open, not in the second activity but in the first one.
I don't want to remove it from recent application list, is not there where it is once i try to close it.
thank you guys