can you explain why ? with opendocument you can get permissions, you know how.
PersistableUriPermissions
apply to directories, not documents. When a doc has been opened (picked), it seems you have unrestricted access to it.
I updated my post, #138
.
If to read my text file I have to open the folder and pick the file I might as well use a file browser without making a dedicate app
If you want to do it without SAF
, the text file must either be in one of the shared
folders (/Download
or /Documents
) or in the ASD
.
No.
No, this also doesn't work with Companion on Android 11+ devices.
It did work for me in the companion, I was able to choose a file and use the URI.
You can choose a file from root folder but you can't choose root folder itself.
I don't have enough idea about it...
Yes, but you asked
and the answer is (again) no.
But you can select / pick e.g. a text file from the root dir of the external storage and read / write from / to it.
Hi
If I don't select a document in open single document list and click the back button all the way to the root level I get this error message.
I am using the Saf_readWrite.aia sample
If you didn't choose a document, then uriString
and uri
returned will be empty.
If I decide not to choose a document and just want to get back to the main screen, How do I close the list without getting this error?
Check if uriString
is empty or not before proceeding.
Usually empty string and nothing are not the same... this is something which should be fixed in the extension
Taifun
The error is from FileTools extension, so yeah needs to be fixed.