Android App Development: Two icons getting created and I only need one

后端 未结 10 2229
情书的邮戳
情书的邮戳 2020-12-14 00:14

I am writing an Android App that has one main activity and one subactivity. When I install the app on my phone to test it out, I get two icons instead of one. The first ic

10条回答
  •  难免孤独
    2020-12-14 00:49

    Does your application manifest list an intent filter under your sub-activity that matches the main launcher?

            
                
                
            
    

    Make sure that your sub-activity is not filtering for these intents.

    Edit: Just to be very clear, make sure the above lines are not listed under your sub-activity. That intent filter lets the Android system know that you intend for it to be listed as an entry point to your application.

提交回复
热议问题