CMS-Android
CMS-Android copied to clipboard
Add option to open course directory in file manager
It is sometimes useful to open the directory of a downloaded file in a file manager. This option should be available for File modules as well as discussions.
After spending an entire afternoon trying to implement this, I finally realized it isn't something that can be implemented easily.
There is no documented way to signify an Intent to open a folder. The only thing that exists is an OpenIntent Action. However, not every file manager out there supports this. Further, there isn't even a standard Directory mime type.
The only workaround would be to add support for each file manager, something I'm not very keen on doing. Not to mention, not all file managers support opening a directory via an intent anyway.
As part of my reading, I changed about this issue on another Android Open Source project. They haven't found a solution either.
I'm leaving this issue open in the off-chance in the future such an Action is widely supported by file managers.