0

When I use this code

path := system.IOUtils.TPath.GetDocumentsPath;

I get the following value for "path":

/data/user/0/com.embarcadero./files

This makes no sense to me at all.

jon bondy
  • 411
  • 3
  • 11
  • I think you are looking for this: https://stackoverflow.com/questions/18857936/how-to-save-a-file-on-android-firemonkey – Alexis Meneses Oct 07 '19 at 02:00
  • I have already read and tried that approach, and it fails. I want to be able to read the contents of the Documents folder, not read and write into a sandboxed folder. All of this was working under 10.2 Tokyo, but no longer works as it once did. – jon bondy Oct 07 '19 at 12:23
  • I can see the Documents folder using a variety of tools on the Android device. One tool claims the path is '/Documents'. Another claims the path is '/storage/emulated/0/Documents'. Neither path works when used in my Delphi Android application. I can no longer see the files in the Documents folder. – jon bondy Oct 07 '19 at 12:26
  • I believe that /'storage/emulated/legacy/Documents' worked at one point, but it no longer works (on the same Android device). – jon bondy Oct 07 '19 at 15:37
  • Solved by Delphi Praxis.: it was a permissions issue. – jon bondy Oct 08 '19 at 18:32
  • You should answer your own answer and check mark it please. – El Diablo Dec 21 '19 at 18:10

0 Answers0