bertt / tango

2 stars 0 forks source link

Where is the Adf file? #5

Closed bertt closed 6 years ago

bertt commented 6 years ago

Tried again to find the ADF files on the device, but no luck so far. Where are they stored exactly (external storage?) Can I see the files in a file explorer? Related question: How to get to the bytes of current selected ADF? Tried ' areaDescription.ExportToFile("/storage/emulated/0/Download/test.pam");' but no file seems to be exported.

bertt commented 6 years ago

There is a Tango config property (TangoConfig.KeyStringDatasetsPath) thats set to '/data/data/com.google.tango/files/datasets/'

But the directory does not exist?

Hwoever, in adb there is a permission issue going to this directory

bertt commented 6 years ago

some adb hacking: must be something like '/data/data/com.google.tango/files/Tango/ADFs'

bertt commented 6 years ago

Testing getting access to the adf using the 'ExportToFile' method, but no luck...

SAmple code:

$ var p= Application.persistentDataPath;
$ var res = mostRecent.ExportToFile(p + "/test.pam");

but /storage/emulated/0/Android/data/com.bertt.arealearning/files remains empty :-(

aiunderstand commented 6 years ago

Possibly helpful reads:

bertt commented 6 years ago

got the export working by having a directory instead of a file in the .ExportToFile method. A file is created with the ADF Guid as name.