My app has 2 main launcher activities, which both must be shown in the apps system drawer.
My question is, what is the correct way to define the intent-filter in the second activity, so it has less priority, and the operating system takes into account the first launcher activity as the main one.
Right now I set next in both activities, but I would like to know if there is a way to define which one is the main one with more importance over the other, or if there are specific details when defining more than 1 main activity:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
I know there is category.DEFAULT flag, but I don't know its purpose, and I see no difference when I add it:
<category android:name="android.intent.category.DEFAULT" />
And finally, I couldn't find any info about multiple launcher activities in Google policies, but is there any policy or guidelines to follow when defining more than one?