Loading a seperate stackfile

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Loading a seperate stackfile

Post by Tomka » Wed Mar 07, 2012 1:17 pm

Hi,

I want to load a seperate stackfile via script in my app. Under Windows I use the go stack command to do this. But under Android I dont realise how to manage this.

The stackfile is saved in the "Substacks"-Subfolder - filename: "Main_App.livecode"... could someone pls give me an example-script how I can load this file (including path-settings)?

Thanks alot

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

Re: Loading a seperate stackfile

Post by Klaus » Wed Mar 07, 2012 2:01 pm

Hi Tom,

should work the same as on Windows once you know the correct path to the stack file 8)

Try this:
...
put specialfolderpath("engine") & "/Substacks/Main_App.livecode" into tStack
go stack tStack
...

Hint, since iOS is CASE-sensitive!!! (and maybe ANDROID also?)
I would recommend to not use any UPPERCASE filenames at all!
Use LOWERCASE in all mobile related file- and foldernames to avoid possible headaches :D

Best

Klaus

Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Re: Loading a seperate stackfile

Post by Tomka » Wed Mar 07, 2012 2:45 pm

Thanks alot Klaus... I´ll try and also change all to lowercase :)

edit: works fine :)

Post Reply

Return to “Android Deployment”