How To Have Multiple Launcher Icons In One Android APK Install For Different Activities

If you’ve ever installed Facebook from the Google Play store and noticed it adds 2 launcher icons (Facebook and Fb Chat) and wondered how they do this (have multiple launcher icons in one install bound to different activities) here is how to achieve this.

Step 1) For each activity you wish to expose an icon for in your Android app, add a corresponding “android:icon” attribute to your in AndroidManifest.xml:


Step 2) The key to getting this working is also adding an “android:taskAffinity” attribute with a unique value for each activity. Note that in the example below I just used the fully qualified package name + activity name. You can use any value you want here though:


Something to note is that the icon you define in the application section of AndroidManifest.xml (<application android:icon="@drawable/app_icon"..) will NOT be visible in the launcher, however it is still important to include as the Google Play store consumes this asset and will display it representing your application.

Complete AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
    android:versionName="2.0" >

    <uses-sdk android:minSdkVersion="15" />

        android:label="@string/app_name" >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            android:taskAffinity="com.logicvoid.androidadvancedsettings.RoamingGuardsSettingsActivity" >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />



2 thoughts on “How To Have Multiple Launcher Icons In One Android APK Install For Different Activities

    • Hello sir,

      I have used taskAffinity in AndroidManifest.But I have checked that without using of taskAffinity we can also show icon for both the screen.I am so confusing why we are using taskAffinity in AndroidManifest.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s