Skip to content

Instantly share code, notes, and snippets.

@huuphuoc1396
Last active October 19, 2020 07:51
Show Gist options
  • Save huuphuoc1396/1b78b8de320e8fe0f0b772a58e0b9fcf to your computer and use it in GitHub Desktop.
Save huuphuoc1396/1b78b8de320e8fe0f0b772a58e0b9fcf to your computer and use it in GitHub Desktop.
Secondary activity in the manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.multiplescreens">
<application
<!-- See about the taskAffinity attribute at http://bit.ly/34RKvzC -->
<activity
android:name=".SecondActivity"
android:launchMode="singleTask"
android:taskAffinity="cover.container" />
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment