Our application has 2 actions - A MainActivity (associated with the Launcher icon) and AuxActivity for handling URI events.
I see a problem with this scenario when my application initially exited:
Open a browser, click the URI to launch AuxActivity .
AuxActivity exit (calls finish ()), the user returns to the browser.
The user opens the latest applications (long press on the house) and selects my application.
Instead of launching MainActivity , I see that AuxActivity launched with the same intention as the click URI ( android.intent.action.VIEW ) represents.
Now instead of step 3, if the user needs to open my application through the "Home screen" icon, I will return to MainActivity , as expected.
How can I get step 3 to run MainActivity instead?
source share