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

后端 未结 10 2233
情书的邮戳
情书的邮戳 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:52

    We have the same problem but i fixed it this way before my code below in manifest

    
            
                
                    
                    
                
            
            
                
                    
                    
                
            
        
    

    Notice that in the SplashActivity inside the intent is this code

    
     
      
     
    

    i only deleted the category

     
    

    So after i deleted the intent-filter category in splash it didn't install two app icon but only one for main the code will be like this notice that the intent-filter category is deleted

    
            
                
                    
    
                
            
            
                
                    
                    
                
            
        
    

    it really helps

提交回复
热议问题