I want to sort of do deeplinking, but I don't want the link in a webpage to open a specific activity in my app - I just want the link to either:
Start my app if it wasn't already started, or
Simply bring my app to the foreground regardless of what activity was being displayed before the app was paused.
But it seems all deeplink examples require the intent filter to specify a particular activity, and that activity will be displayed when the link is clicked regardless of the state of the app before the link was clicked.
Yes. You can implement some logic in the main activity, based on the starting intent in Activity_Resume, and show the last visible activity. You will need to track it.