user1209216
user1209216

Reputation: 7914

Add my app activity instances to recents on Lollipop

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

Answers (1)

weston
weston

Reputation: 54791

Overview Screen AKA Recent Tasks

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

Related Questions