Reputation: 7914
This feature was introduced in Chrome on Lollipop. Chrome's tabs can be managed by Lollipop recents list.
How to implement similar functionality in my own app? Is there any new api for this?
Upvotes: 1
Views: 244
Reputation: 54791
With the Android 5.0 release (API level 21), multiple instances of the same activity containing different documents may appear as tasks in the overview screen.
In API 21 they added FLAG_ACTIVITY_NEW_DOCUMENT
to achieve this.
Through the use of this flag, or its equivalent attribute, documentLaunchMode multiple instances of the same activity containing different documents will appear in the recent tasks list.
For usage see here.
Upvotes: 2