Saving a data stack in 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: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Saving a data stack in android

Post by jacque » Mon Dec 22, 2014 12:40 am

Yup, that'd be a problem and would explain what you're seeing. I think you need to go back to the script that moves the stack to Documents. But again, I'm still confused about the stack you are trying to copy. The appstack has to be a separate, independent stack that you've put into the Copy Files pane in standalone settings. Is that what it is? It shouldn't be a substack of your mainstack, those are part of the app itself.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

keith.izatt
Posts: 14
Joined: Mon Dec 15, 2014 4:51 am

Re: Saving a data stack in android

Post by keith.izatt » Tue Dec 23, 2014 7:46 am

Yes, it is a separate stack and it was added in the copy files pane.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Saving a data stack in android

Post by jacque » Tue Dec 23, 2014 8:26 pm

I just noticed the capitalization. Mobile operating systems are case-sensitive, so you need to use a lower-case "d" when specifying the special folder path. Otherwise, the copy will fail:

Code: Select all

set the defaultFolder to specialFolderPath("documents")
That may be the problem.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

keith.izatt
Posts: 14
Joined: Mon Dec 15, 2014 4:51 am

Re: Saving a data stack in android

Post by keith.izatt » Wed Dec 24, 2014 8:32 pm

Bingo! Something so basic. Thanx for the help.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Saving a data stack in android

Post by Klaus » Wed Dec 24, 2014 8:34 pm

jacque wrote:I just noticed the capitalization. Mobile operating systems are case-sensitive, so you need to use a lower-case "d"
when specifying the special folder path. Otherwise, the copy will fail:

Code: Select all

set the defaultFolder to specialFolderPath("documents")
That may be the problem.
I thought that would not be the case since "specialfolderpath()" is a Livecode function? :shock:

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Saving a data stack in android

Post by jacque » Wed Dec 24, 2014 10:04 pm

Klaus wrote: I thought that would not be the case since "specialfolderpath()" is a Livecode function? :shock:
It's a LiveCode function, but it passes the folder name to the OS exactly as you've typed it. If the OS is case-sensitive, it fails.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Saving a data stack in android

Post by jacque » Wed Dec 24, 2014 10:07 pm

keith.izatt wrote:Bingo! Something so basic. Thanx for the help.
I'm glad we got it figured out, and sorry it took so long. You had me puzzled for a while because saving a stack is such a basic process. I should have noticed the capitalization earlier, since the main thing that can go wrong is an incorrect file path.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Saving a data stack in android

Post by Klaus » Wed Dec 24, 2014 11:29 pm

jacque wrote:
Klaus wrote:I thought that would not be the case since "specialfolderpath()" is a Livecode function? :shock:
It's a LiveCode function, but it passes the folder name to the OS exactly as you've typed it. If the OS is case-sensitive, it fails.
Ah, OK, I thought that would be translated internally first somehow! Thanks for the heads-up!

And now merry christmas etc... :D

keith.izatt
Posts: 14
Joined: Mon Dec 15, 2014 4:51 am

Re: Saving a data stack in android

Post by keith.izatt » Thu Dec 25, 2014 12:54 am

A true christmas miracle! Thanks again. Solved a problem I have had for quite a while.

Post Reply