MIME for ttf and otf fonts

Until the tenth version of android, through the request SAF entered the type "application/octet-stream" and in principle everything worked. Of course, it showed not only fonts but also other files, but it was possible to work. In version 10, files with the ttf and otf extensions are no longer active. And here's another oddity, downloaded to a phone with Android version 9, and imported into the application, after updating the operating system to version 10, these files remained visible, but the new ones were not. I specified these types

        intent.setType("application/x-font-ttf");
        intent.setType("application/x-font-otf");
        intent.setType("application/font-sfnt");
        intent.setType("application/*");

But nothing helps. In general, I ask for advice on how to be. Can who faced with such?

Author: Игорь, 2020-09-11

1 answers

In general, everything turned out to be easier. Android 10 began to support MIME font, which means that they are not visible in the "application".. This was found out by trial, since we are not accustomed to reading the documentation(.

 intent.setType("font/ttf");

And by the way, otf is also visible.

 0
Author: Игорь, 2020-09-12 13:17:10