Android Storage Access Framework - launch selection for custom file type

I am trying to use the SAF collector in my application to search for my custom file types. Doing this is simple enough when the file is of type mime, calling setType ("text / plain") or similar.

What would a call look like if I wanted to search, say, all files with the extension ".blah"?

Edit : additional information: file type is a regular text file with a changed extension. There is some text in the file that I parse to create some data structure from it. However, when a user searches for a file of a specific extension, I would like them to see only my user files, and not all text files.

+4
source share
1 answer

I'm not 100 percent sure if this also applies to android (because I haven't used it yet), but in general the mimetype type for all binaries could be "application / octet-stream" if you don't know with what type of file are you dealing

0
source

Source: https://habr.com/ru/post/1570905/


All Articles