Android Question Android 6 SD files not seen from PC - SOLVED

ac9ts

Active Member
Licensed User
Longtime User
On an Android 6 device with the SD card formatted for internal storage (encrypted), i have my app write various log files using File.WriteList. When I connect the device to my PC USB and set the USB for file transfers, I can't see the files from the PC. I can see them on the device using the devices file explorer. I can see files that I copy from the PC to the device on both.

I can see files that other apps create (i.e the camera) but not ones from my app. Is there some setting/permission I'm missing?
 
Last edited:

ac9ts

Active Member
Licensed User
Longtime User
Are you writing the files in File.DirRootExternal?

Yes. I use PDir = File.DirRootExternal & "/TView" and it points to "/storage/emulated/0/TView"

Are they visible if you reconnect the USB cable?

No. I see the file on the device using ES File Explorer. My workaround is to copy an empty file from the PC to the device with the same name and both the app and PC can see it. Also, neither complains when the PC overwrites the file on the device.

If it matters, I'm using B4A v5.80
 
Last edited:
Upvote 0

ac9ts

Active Member
Licensed User
Longtime User
That worked. I do have to disconnect/reconnect the USB cord but I can see the file. Thanks.
 
Upvote 0
Top