File not created on my Android app

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
steve_nam
Posts: 60
Joined: Wed Jan 08, 2014 1:09 pm
Location: Windhoek, Namibia

File not created on my Android app

Post by steve_nam » Tue Jan 20, 2015 9:09 pm

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

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: File not created on my Android app

Post by Klaus » Tue Jan 20, 2015 9:39 pm

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

steve_nam
Posts: 60
Joined: Wed Jan 08, 2014 1:09 pm
Location: Windhoek, Namibia

Re: File not created on my Android app

Post by steve_nam » Wed Jan 21, 2015 6:14 am

Hi Klaus,
It is specialFolderPath("documents") with a d and not a D.

Thanks for your reply
Steve

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: File not created on my Android app

Post by SparkOut » Wed Jan 21, 2015 8:38 am

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.

Post Reply

Return to “Databases”