I'm following this guide to show my activity in Recent Screen like a separate task.
I've added this flag to open my activity in a new task:
newDocumentIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
When I start an activity using startActivityForResut
the new activity is not opened as a separate task.
However, if I start an activity using startActivity
it is opening in a new task.
Is this is the default behavior? or am I missing something?