Android intent filter: associate app with file extension

后端 未结 16 1962
北海茫月
北海茫月 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:48

    Those who having issue with other File Manager\Explorer apps, as @yuku and @phyrum-tea answered

    This works with LG default file manager app

         
                
                
                
                
                
                
            
    

    but could not work with ES File Explorer and other File Managers so i added

     android:mimeType="*/*"
    

    then it works with ES Explorer but LG file manager could not detect file type so my solution is

         
                
                
                
                
                
                
            
            
                
                
                
                
                
                
                
                
            
    

提交回复
热议问题