You can combine the flags (ie: use Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP
).
However, if the existing task does NOT have an active (non-finished) instance of myActivity
in it, it will not clear anything and it will just create a new instance of myActivity
on the top of the stack.