I have a question, I want to remove my application in foreground as well as in background. My current code is:
.finishAffinity();
I've also tried:
.finishAffinity();
System.exit(0);
However, the application is still in background mode.