Page 1 of 1

File not created on my Android app

Posted: Tue Jan 20, 2015 9:09 pm
by steve_nam
Hi
The specialFolderPath is creating the .txt file on my widows pc, but when I transfer the standalone to my Android phone it does NOT create the file in the documents folder. The app works as intended on the pc, but when transferred/installed on the phone it misses the required data file.

Any pointers?
Steve
Ps: I'm using LiveCode 7.0.1

Re: File not created on my Android app

Posted: Tue Jan 20, 2015 9:39 pm
by Klaus
Hi Steve,

quick guess:
Use -> specialfolderpath("documents") -> with a d! on Android and iOS.
-> specialfolderpath("Documents") with a capital D! will not work!
Maybe that is it?


Best

Klaus

Re: File not created on my Android app

Posted: Wed Jan 21, 2015 6:14 am
by steve_nam
Hi Klaus,
It is specialFolderPath("documents") with a d and not a D.

Thanks for your reply
Steve

Re: File not created on my Android app

Posted: Wed Jan 21, 2015 8:38 am
by SparkOut
Is the missing file something that the app specifically creates, or is it something you selected to include with the standalone building options?

If the latter, then it will be packaged in the engine folder and you will have to check to see if the file exists in the documents folder. If not, then copy it from the engine folder, or if it's already been done when the app was first run, you can skip the copying and get straight to business.

If the former, not sure, I think we would need to see a bit of code how you are creating the file.