Page 1 of 1

Test on device folder

Posted: Tue Mar 17, 2015 4:39 pm
by gepponline
I'm testing my mobile app on a phisical device.

In this app I save a file in this path:

Code: Select all

  put specialFolderPath("documents") & "\censimentofiliere.txt" into tFilePath
Where should I find this file? I can't find it in the device.

In the stand alone application settings i leave Identifier as "com.yourcompany.yourapp" and label is "censimento Filiere"

thank you!

Re: Test on device folder

Posted: Tue Mar 17, 2015 6:17 pm
by Klaus
Attentione, amico mio!
ALWAYS use SLASH as pathdelimiter inside of LC:

Code: Select all

## BAD: put specialFolderPath("documents") & "\censimentofiliere.txt" into tFilePath
put specialFolderPath("documents") & "/censimentofiliere.txt" into tFilePath
This should be found inside of the app package on the device, because of "sandboxing" every app has its own "documents" folder!

Re: Test on device folder

Posted: Tue Mar 17, 2015 8:10 pm
by gepponline
ok, but the backslash works correctly on windows.

But the most important thing is, I'm using the device to test. So the app is not "installed" in the device.
Should it has his own folder the same? I've used total commander to search for a folder that could contain my app but i didn't find it

Re: Test on device folder

Posted: Tue Mar 17, 2015 8:44 pm
by Klaus
Hi Geppo,
gepponline wrote:ok, but the backslash works correctly on windows.
yes, and only there 8)
gepponline wrote:But the most important thing is, I'm using the device to test. So the app is not "installed" in the device.
Should it has his own folder the same? I've used total commander to search for a folder that could contain my app but i didn't find it
Maybe you should first tell me what we are talking about Android or iOS?


Best

Klaus

Re: Test on device folder

Posted: Tue Mar 17, 2015 8:47 pm
by gepponline
Android! ☺
On a nexus 4 with 5.0.1 installed

Re: Test on device folder

Posted: Tue Mar 17, 2015 8:55 pm
by dave.kilroy
Hi gepponline

I've just recently moved back to developing for Android after a long spell with iOS and I too wanted an independent way to check/test file locations on Android (see http://forums.livecode.com/viewtopic.php?f=53&t=23503) - but without rooting your device (btw I'm also testing on a nexus4 - such a nice piece of kit) you won't be able to see it even with apps like total commander. You can check for the existence of folders and files within the app 'sandbox' with LiveCode just fine which I think we have to be satisfied with...

Good luck!

Dave

Re: Test on device folder

Posted: Wed Mar 18, 2015 4:56 pm
by jacque
The app's documents folder is stored in data/data/ on Android and is only accessible if you have root access.