I'm working on an app where the content is not something that should be shown in the recent app list.
I've tried SetActivityAttribute(Main, "android:excludeFromRecents", "true") in the manifest and this removes the apps icon in the list. Unfortunately this also kills the app every time I swap to another app. This does not happen when the excludefrom recent is not in the manifest
Sounds like a reasonable way for the OS to behave. The user is not expected to return to the previous "session" as the app is excluded from the recent apps list.