singleInstance indicates that a launched or redesigned activity will be created on a new or existing task, and no other actions can be stacked on top of it . The system guarantees that any actions launched from it will be applied to other tasks.
1 task and 1 activity.
The flag of intent, of which I am aware, will impede further actions triggered by your activity, without the need to indicate flags in all your new actions.
So the answer is impossible .
The previous posted answers imitate how it will look, but the behavior is contrary to the specification.
source share