'Two icons created when using two activities

Two icon created when i using Two activity Android Studio. I don't know why is this. I delete intent and I do some works but it's didn't worked.

I am creating one app. And I run in physical device. And that app has two icons.



Solution 1:[1]

I find my problem and I will clear . `

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>`

here you will two category . you will delete number two category . This is our problem . android.intent.category.LAUNCHER this create a app icon for second activity.

Solution 2:[2]

Just remove these lines from one of your two activities (if you have a SplashScreen and a MainActivity, remove them from your MainActivity)

        <intent-filter>
           <action android:name="android.intent.action.MAIN" />
           <category android:name="android.intent.category.LAUNCHER" />
       </intent-filter>

Answer from https://stackoverflow.com/a/29735556/8577483

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nethran Kumarasamy
Solution 2 Sami