I have a button that when pressed opens a file dialogue. I want to filter the files available for selection to just: pdf, docx, html, rtf and txt
.
I have been trying to use the html accept tag, but compared to the desktop version the android one seems a little bit weirder, for example pdfs
can be filtered with application/pdf
but not .pdf
and text/*
allows nearly all files but .txt
does not work.
Does any one have a guide for filtering with html in Android, all I can find is how to use image/*
or audio/*
which is not useful.