How many scheme & host tags can come under intent-filter in android manifest

前端 未结 2 398
情书的邮戳
情书的邮戳 2021-02-06 00:11

Need more info regarding intent-filter tag specified in manifest. I am aware that we can specify data in two forms:


     

        
2条回答
  •  梦毁少年i
    2021-02-06 00:43

    Complementing @CommonsWare answer, it appears that you cannot use two tags if you are not so specific.

    A) In one of my apps I can have:

    
    

    B) And

    
    

    C) But the following will ignore the first tag (using myAppScheme1://whatever URI won't work):

    
    
    

    D) However if I complement the first scheme it will work for both URIS:

    
    
    

    Probably if you really need the case C), you'll better create two intent-filters

提交回复
热议问题