It won't be because the given file was created in an external editor, then added to the app companion to assets, then updated there and then copied to /Documents/Backups.
Does the given file have to be created from the beginning in the companion or in the apk?
Here is the block by which the file was copied from ASD to /Zalohy:
Sorry, I have to go now.
Senior1954
Taifun
July 20, 2024, 11:50am
8
Are you planning to 1) publish your app in Google Play? Or 2) is it only for you without publishing?
In case of 2) you could use
without need to use SAF
Taifun
1 Like
What response
did you get from DocumentCopiedToASD
event?
TIMAI2
July 20, 2024, 3:11pm
10
I created an sqlite db using sqliteDB Browser on my computer, and copied it to the Download folder via USB, so not created by the app.
Testing on companion 2.71u, with Android 13, and the latest version of the SAF extension, works for me:
1 Like
@Ondrej_Ruz
You should update extension then.
ChangeLog Version 1.3
New Blocks
[image]
Both blocks sponsored by @Alexandre_Gorine
[image]
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.
com.sunny.saf.aix (29.2 KB)
Thanks everyone for the replies!
I installed the new extension com.sunny.saf...
I just don't know which blocks to use now......
The DocumentCopiedToASD block is not there...
TIMAI2
July 22, 2024, 11:16am
13
Did you not see my example blocks above ???
Taifun
July 22, 2024, 11:34am
14
What about you also repkying to questions?.
Taifun
1 Like
I used your blocks but it doesn't work for me:
TIMAI2
July 23, 2024, 6:59am
16
How are you testing, with companion?
Looks like you are able to pick a file...
Show your SAF1.GotUri blocks...
TIMAI2:
How are you testing, with companion?
Looks like you are able to pick a file...
Show your SAF1.GotUri blocks...
It was a test with Companion
TIMAI2
July 23, 2024, 7:57am
19
Just retested with the same filename and directory structure and it still works OK here.
Post aia and give a db file as well.
It's a big app, so I can't send the .aia...
This doesn't work either...
I have the source file stored in the folder /Documents/Backups. Will there be a problem with this?
Sorrry.... in /Documents/Zalohy
Ondrej_Ruz:
The error is quite surprising.
This is absolutely unnecessary, though worth a try. Take persistable uri permission before copying.
Are you testing on a Samsung phone?
TIMAI2
July 23, 2024, 9:21am
26
Set up a test aia project to just do this file copy. Does that work ?