Android intent filter for a particular file extension?

后端 未结 15 1571
我寻月下人不归
我寻月下人不归 2020-11-22 16:04

I want to be able to download a file with a particular extension from the \'net, and have it passed to my application to deal with it, but I haven\'t been able to figure out

15条回答
  •  广开言路
    2020-11-22 16:21

    Rather than android:path, try android:mimeType, with a value of the MIME type of this particular piece of content. Also, android:path does not accept wildcards -- use android:pathPattern for that.

提交回复
热议问题