Register to be default app for custom file type

前端 未结 4 1147
执念已碎
执念已碎 2020-11-29 06:13

Register to be able to open files of custom type. Say i have .cool files, and if the user tries to open it, Android asks if they would like to open it with my application. H

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 06:36

    One possible answer is shown here . Use this inside one of your activity tag and it'll be opened when the file have been pressed. I tested it using the native android file manager in Oreo.

    
        
    
        
        
        
    
        
        
        
        
        
        
        
        
    
    

提交回复
热议问题