How can I have 2 icons for 2 main activities? I have 2 main/launcher activities. each of those have its own icon. All is ok, but sometimes users say that after update - the icon get mixed. they get 2 times the same icon.
<activity android:name="com.test.testpackacge.activity"
android:theme="@style/AppTheme.NoActionBar"
android:icon="@mipmap/icon"
android:roundIcon="@mipmap/ic_icon_round"
android:label="@string/app_label_gallery"
android:configChanges="orientation|screenSize|keyboardHidden"
android:launchMode="singleTask"
android:taskAffinity="com.test.testpackacge.activity"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.test.testpackacge.activity2"
android:icon="@mipmap/icon2"
android:roundIcon="@mipmap/icon2_round"
android:launchMode="singleTask"
android:label="@string/app_label"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize"
android:taskAffinity="com.test.testpackacge.activity2">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Will adding Default to the main activity will help?
<category android:name="android.intent.category.DEFAULT"/>
Should I consider flavor? or 2 manifests?