FOLDERnFILE script examples that work on Android?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7252
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: FOLDERnFILE script examples that work on Android?

Post by jacque » Fri Aug 26, 2011 7:25 pm

After following this topic and filtering through Barry's nonsense I was able to write my little app in just 3 hours.
:) Congratulations!

Summary of topic as I read it:

1. You can save files to the engine folder during a build, but the engine folder is read-only when run on a device.
2. f you want to save app or user data, use the Documents folder at specialFolderPath("documents"). Note it is case-sensitive. Documents is read/write and is intended for your own files.

I think that's the bare bones of the thread. Pretty simple really.

Barry: it doesn't matter what file path Documents is mapped to, and you can ignore the developer ID, it has no significance for your scripts. The engine uses a virtual mapping scheme, and if Android changes the mapping may change later anyway. Just use specialFolderPath, which will always point to the right location and let the engine work out the details for you.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”