Hi, @c4p!
Thanks, but this gets more and more (there is always a "but", and several "mores") weirder...
First of all, I can't understand the permissions issue I find especially difficult to understand why this crappy, half-breed operating system which is called 'Android' allows to download (i.e., writing) files to the damned main storage device but does not allow to open (i.e., reading) the very same files! This defies all logic!
Anyway, isn't there one or more ways of granting permissions via code? Thousands of apps ask users for permissions before running the first time, why this very silly app of mine cannot do the same?
And more (!): in your code you are using the SDCard, bur the problem is not supposed to be with the main storage device? What if the poor user doesn't have a SDCard?
And yet more: if the problem is really one of the permissions, why not simply download the file to a 'public' folder or something where the downloaded files can be opened without hassle?
I am totally confused!
With best regards,