How to bring to front the task that already started activity (this activity can be on the stack back) if anther task wants to start this activity. I tried to do this with intent and flags but it isn't helping. the new task starts root activity and not brings to front the task that already started this activity. tasks created not from the same application
on netbeans I have 2 application the one that start app B and the second app b that user can start it directly from device.
hope you can help.If can give some code