I tested TextEditor - Save and load external files and I also got the fact that
For now it works only with files, that are selected with ContentChooser just before. For all others I get java.lang.SecurityException: Permission Denial: reading com.android.fileexplorer.provider.FileExplorerFileProvider uri content://com.mi.android.globalFileexplorer.myprovider/root_files/storage/4AE5-2027/_SD_Audio/...
The background is, that I want to allow the user to play audio, that he pasted before to a special folder.
Any suggestions?
So what would be the best way, to show pics and play audio in just one folder of DirRootExternal, which is selected before? This folder-path is always the same, so should be saved once, if selected for next app start. I need no write access, only reading. Is this still possible?It is no longer possible to directly access File.DirRootExternal. The best way is to use ContentChooser.
For now it works only with files, that are selected with ContentChooser just before. For all others I get java.lang.SecurityException: Permission Denial: reading com.android.fileexplorer.provider.FileExplorerFileProvider uri content://com.mi.android.globalFileexplorer.myprovider/root_files/storage/4AE5-2027/_SD_Audio/...
The background is, that I want to allow the user to play audio, that he pasted before to a special folder.
Any suggestions?
Last edited: