Open alenz316 opened 10 years ago
I have been looking in the library, but I can't a function that does this. Currently I hardcoded the type MIME_TYPE_VIDEO in FileUtils.createContentIntent(), but did you write a function that does this or is hardcoding the file type want the only way to do it?
This is a great library BTW!
Sorry for taking so long to respond. You should be able to just set the MIME type on the intent you use to launch the file chooser.
intent.setType(DESIRED_MIME_TYPE);
Thank you for the answer. your library helped me a lot
Disables and grays out file entries that do not match the MIME type defined in the original intent type. FileUtils.compareMimeTypes from Android source code (ClipDescription.java).