Background:
My app (I will call it "A") can be started from an intent. If a specific URL is clicked A is opened.
A has a custom navigation, so the back button does not always override super.onBackPressed() or finish() it.
The problem:
After opening A from another app lets say the email app (I will call it "E"), A can not come back to E. If I click the "tasks" button, where the user can see the name, icon, and a thumbnail of the current running apps, I can see that E (icon and name) has as thumbnail A, not E. When I click on it I go to A, and cannot come back to E.
The question:
Is there a way to come back to E from A? Should I track the activity stack to come back to it whenever I want? I know that I can not force close an application, but could I open the A from E closing E before A is open? Is there a way to specify this behaviour on the intent?
Thanks in advance.