Step 1- Application is not exist in recent app list (App has been removed from recent app list). Step 2- As soon as I got notification open IncomingCall activity, User a
As per you needs, finishAndRemoveTask() is the new API that as per the documentation
Finishes all activities in this task and removes it from the recent tasks list.
if(android.os.Build.VERSION.SDK_INT >= 21) { finishAndRemoveTask(); } else { finish(); }