Page 1 of 1

Android app crashes when substacl opened

Posted: Mon Nov 17, 2014 11:59 am
by annettes
I have created an app for Android on Windows 7, first using LiveCode 6.2.2 then 7.0.0 - the problem occurs in both. In my Mainstack, I have a card with an image and the script for the image opens a substack when you click on the image. It works fine in the IDE, but when I load it onto an Android device, the substack opens briefly and then the app crashes. The code I am using is

Code: Select all

on mouseUp
   open stack "Elements of Water"
   show stack "Elements of Water"
   go to stack "Elements of Water"
end mouseUp
 
In the IDE I cannot get it to work without using all 3 of the above statements, even though from the documentation it sounds like I shouldn't have to. (Is that correct?) In the standalone version I tried just using the open stack statement, but I still get the same problem.

I know that on Android only one stack can be visible at a time and that the visible stack is the last one opened. What happens when the substack is closed? Will the previous stack become visible again?
Thanks for your help.

Re: Android app crashes when substacl opened

Posted: Mon Nov 17, 2014 7:54 pm
by jacque
You should only need the "go" line. In the IDE that will open the new stack over the old one. On mobile it will replace the old stack.

But you shouldn't get a crash regardless, so I'd report that.