Quick question, just want to know if i have 2 tasks in my project. Is there any way to clear both of them in a single go. This is because when i try to clear both task to quit my app, only one is clearing and the another one is still alive which prevents me from quitting the application.
finishAffinity();
int pid = android.os.Process.myPid();
android.os.Process.killProcess(pid);
Any suggestions to solve this ?