SAF1 - copy db.sqlite to ASD

Did you test in on a Samsung device?

I tried. It's a step further... The sqlite file has been copied to the ASD. But there is no data. It is empty.

Yes. I don't have the ReadFileAsByteArray method in SAF.....I connected the mobile with a PC cable, so I'm already using the sqlite editor from the PC to open it..... But only metadata was copied from sqlite to ASD.

Ah, quite close. I forgot.
It is ReadAsByteArray, actually.
Output will be delivered via GotReadResult event.

Try the same with any other non-media file (.txt, .pdf). In my case a text file:

grafik

If this also fails, declare MANAGE_EXTERNAL_STORAGE in the Manifest and try again.

It is the same.....
obrázok

obrázok
obrázok

Install the app, open it, "Access all files" → search "TestToASD" and grant permission.

I can't see the /sdcard folder...

I only have this here.....

= /storage/emulated/0


Connect your device to the computer via USB and you will be able to see it.

grafik

So it works with this permission, which is of course a bug with your Samsung device. The ASD no longer requires storage permissions since API 19 (Android 4.4 / KitKat).

I don't understand it... Where is the mistake...

Which mistake? As I said...

All the time I have my mobile phone connected to the PC via USB...

scroll down and look for:

edu.mit.appinventor.aicompanion3

But the app was launched as an .apk ...

I ran TestToASD.apk…

I chose:

And in that folder
obrázok

is this:
obrázok

The file dbKnihy..... is not there

Thanks for all the replies so far.
I have to leave now....
Senior1954

From your computer it should look like this: