Android intent filter: associate app with file extension

后端 未结 16 2100
北海茫月
北海茫月 2020-11-22 11:06

I have a custom file type/extension that I want to associate my app with.

As far as I know, the data element is made for this purpose, but I can\'t get it working. h

16条回答
  •  无人共我
    2020-11-22 11:52

    The pathPattern

    
    

    does not work if the file path contains one or more dots before ".pdf".

    This will work:

    
    
    
    
    

    Add more if you want to support more dots.

提交回复
热议问题