title: How to open a activity in a new tab in android
body: <p>I have seen this feature that allows you to open a new tab in recent apps with a different activity</p>
  <p>This feature is in the app called reddit sync where you can open different sub-reddit in different windows</p>
  <p>The feature guide explains the feature as follows:
  &quot;Long press to open sub in a new window. This opens the sub &quot;on top of&quot; whatever you were going through. You don't lose your place in the frontpage. A full width swipe from left to right will take away the new window.&quot;</p>
  <p>Can someone explain me how exactly the feature can be implemented in code (Java)
  <a href="https://i.stack.imgur.com/sjKOU.jpg" rel="nofollow noreferrer">I am attaching screenshot of the app/feature that it works on</a></p>