I'm launching an activity from a service and want it to appear in the recent apps list.
However, I want the activity to be removed from the recent apps list if I exit the application (e.g. press button on activity's UI which calls finish()).
Excluding the activity from the recent apps list with android:excludeFromRecents="true"
does not give me the initial activity behaviour that I require, i.e. the activity appearing in the recent apps list.
Is this possible?