Page 2 of 2

Re: Saving a data stack in android

Posted: Mon Dec 22, 2014 12:40 am
by jacque
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.

Re: Saving a data stack in android

Posted: Tue Dec 23, 2014 7:46 am
by keith.izatt
Yes, it is a separate stack and it was added in the copy files pane.

Re: Saving a data stack in android

Posted: Tue Dec 23, 2014 8:26 pm
by jacque
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.

Re: Saving a data stack in android

Posted: Wed Dec 24, 2014 8:32 pm
by keith.izatt
Bingo! Something so basic. Thanx for the help.

Re: Saving a data stack in android

Posted: Wed Dec 24, 2014 8:34 pm
by Klaus
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:

Re: Saving a data stack in android

Posted: Wed Dec 24, 2014 10:04 pm
by jacque
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.

Re: Saving a data stack in android

Posted: Wed Dec 24, 2014 10:07 pm
by jacque
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.

Re: Saving a data stack in android

Posted: Wed Dec 24, 2014 11:29 pm
by Klaus
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

Re: Saving a data stack in android

Posted: Thu Dec 25, 2014 12:54 am
by keith.izatt
A true christmas miracle! Thanks again. Solved a problem I have had for quite a while.