It says: java.lang.String cannot be cast to android.net.Uri The blocks are correct.
UPDATE: The method is now working. isReadGranted and isWriteGranted are both true.
This is the only problem I got:
Unsupported Uri content://com.android.externalstorage.documents/tree/3BCB-0F0D%3ADocuments
Hey! it’s working now! I am doing some explore to work properly! my Image is ready to save to SD Card! This extension is useful
ChangeLog Version 1.2 [July 3, 2023]
New Blocks
Changes
- Minor internal changes to increase reading and writing speed
- Works more efficiently now
ChangeLog Version 1.3
New Blocks
Both blocks sponsored by @Alexandre_Gorine
Changes
- Some internal changes in
InitialDir
method to make it usable on Android < 10 -
CopyDocument
will try to create document manually if Copy is not supported for given parent uri
It may work so worth trying.
Previously it returned an empty string for Android versions < 10.
Hi there again! I have one question, What is InitialDir on OpenSingleDocument or OpenDocumentTree can do to use? Give me some example.
wow nice. if you put android.intent.extra.TITLE on the create document, it will automatically have file name?
yeah
it should be able to force directory also but im not able to get it to work
ah… OK Anyway don’t worry, I have to figure it out for Initial Directory. because I implemented my Designer app with Storage Access Framework.
you should pass it in extra also but it didnt work for me
if you are able to share the solution
You can use InitialDir block like this:
what extra key should i use for initialdir
android.provider.extra.INITIAL_URI
i will test when i can now ab server is in maintenance
This is it! I will be able to work with Initial Dir selection.
where does label1 come from ?
I opened a document tree from picker and set label1 text to obtained uri.