<How to handle App links without creating a new ta...
# stackoverflow
r
How to handle App links without creating a new task when using singleTop in MainActivity? I am working on an Android app that has multiple activities, and my MainActivity is declared with launchMode="singleTop" because I need to handle the app’s app linking logic. Here’s the problem I’m facing: When my app is already open, and I click on an app link (from Gmail app), it opens the MainActivity in a new task. Since my app has several activities, I can't use "singleTask" for the launchMode, as that would interfere with the navigation flow across other activities. I would like to...