diff --git a/samples/IntentPlayground/AndroidManifest.xml b/samples/IntentPlayground/AndroidManifest.xml
index aa934fa18..25e5d28e9 100644
--- a/samples/IntentPlayground/AndroidManifest.xml
+++ b/samples/IntentPlayground/AndroidManifest.xml
@@ -30,6 +30,10 @@
+
diff --git a/samples/IntentPlayground/src/com/example/android/intentplayground/FlagUtils.java b/samples/IntentPlayground/src/com/example/android/intentplayground/FlagUtils.java
index fdad2f624..662f24895 100644
--- a/samples/IntentPlayground/src/com/example/android/intentplayground/FlagUtils.java
+++ b/samples/IntentPlayground/src/com/example/android/intentplayground/FlagUtils.java
@@ -288,6 +288,9 @@ class FlagUtils {
case ActivityInfo.LAUNCH_SINGLE_TOP:
lm += "singleTop";
break;
+ case ActivityInfo.LAUNCH_SINGLE_INSTANCE_PER_TASK:
+ lm += "singleInstancePerTask";
+ break;
case ActivityInfo.LAUNCH_MULTIPLE:
default:
lm += "standard";
diff --git a/samples/IntentPlayground/src/com/example/android/intentplayground/SingleInstancePerTaskActivity.java b/samples/IntentPlayground/src/com/example/android/intentplayground/SingleInstancePerTaskActivity.java
new file mode 100644
index 000000000..a5db6d644
--- /dev/null
+++ b/samples/IntentPlayground/src/com/example/android/intentplayground/SingleInstancePerTaskActivity.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2021 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.example.android.intentplayground;
+
+/**
+ * An activity with launchMode="singleInstancePerTask" set in AndroidManifest.xml.
+ */
+public class SingleInstancePerTaskActivity extends BaseActivity {}
\ No newline at end of file