TaifunFile1 CopyAsync - info

Hello.
Can anyone help?
I want to make a SQLite1 copy of the file dbKnihy.db from ASD to a folder
file:///storage/emulated/0/MojeSubory/.

I tried to do it via:

the copy was not created.
So I tried via:
vystup is: file:///storage/emulated/0/MojeSubory/dbKnihyZaloha.db

its not working.

Ondrej

Sorry.
Sorry.
It is:

And one more question:
Can it be tested also via Al Companion or only via .apk?
Ondrej

You need to set Screen1 properties: FileScope to Legacy, then you can use the File component to copy the file (copy from "App" to "Legacy".

You can't copy files to arbitrary directories anymore with newer devices, see also Some basics on Android storage system

Taifun

2 Likes

Hello.
So which folder should I make the backup to?
And via CopyAsnc or Export?
Ondrej

Thanks.

The ASD can only be accessed by your app and is automatically removed when the app is uninstalled....

But when I want to back up the dbKnihy.db file even after uninstalling my application....e.g. due to a major app update, how should I do it? Where should I backup the file?
Ondrej

  1. Move it from the ASD to a subfolder of /Documents/ (e.g. /Documents/SAFE/data.db). After reinstalling the app, the file can then be read from there.
  2. Upload the file to a cloud. If the app is then installed on a new device, this file can be downloaded at the first start.

Thanks