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
File not created on my Android app
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: File not created on my Android app
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
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
Hi Klaus,
It is specialFolderPath("documents") with a d and not a D.
Thanks for your reply
Steve
It is specialFolderPath("documents") with a d and not a D.
Thanks for your reply
Steve
Re: File not created on my Android app
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.
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.