The LAUNCHER
intent filter is what determines what shows up in the app drawer/launcher. That is why you get two icons shown up.
However, you also set the DEFAULT
intent filter, which sets the default Activity
for the whole package. Since you set it twice, you get the problem of precedence of the first/latest registered. When you remove the DEFAULT
filter, you will be able to start whatever you click on in the launcher.
In short, remove the following line from both Activities:
<category android:name="android.intent.category.DEFAULT" />
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…