Make your life easier and don't use SAF as already mentioned from the beginning of this thread
Taifun
Make your life easier and don't use SAF as already mentioned from the beginning of this thread
Taifun
This seems the most acceptable way for me... One more question: How do I achieve the renaming of the .sqlite file in ASD? What extension is best to use for this?
Senior1954
Use the File component "Move" block to rename a file.
Thank you.
69 / 5 000
Hello.
I tried to add a block like this:
but I get an error:
I actually need to "create" the dbKnihy.sqlite from currentFilename in ASD.
Senior1954
Sorry, this was supposed to be a question for Taifun...
What is the purpose of the WebViewExtra extensiom and the Base64Convertor extension in this context?
You only have to ask for MANAGE_EXTERNAL_STORAGE permission and then copy the file from Backup to ASD, that's all. I would use the file extension for this App Inventor Extensions: File | Pura Vida Apps
Please show all relevant blocks
Taifun
Can you explain the purpose of the WebViewExtra extensiom and the Base64Convertor extension in this context?
Also where are you asking for MANAGE_EXTERNAL_STORAGE permission?
Taifun
You can save a file directly to the ASD using webviewextra.
I just need to rename the file...
It works fine for me on companion:
These are all blocks you need, assuming the name of your backup file is backup.sqlite
copy.aia (37.6 KB)
Taifun
And should it be in this block?
Where are you getting the file from, an external source ?
Yes
Thanks Taifun.
I just need to select the input file from the /Documents/Zalohy/ folder from multiple files....
use the FileList method to get a list of the sqlite files and then pick a file using a listpicker
Taifun