Android app crashes when substacl opened

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
annettes
Posts: 4
Joined: Tue Nov 11, 2014 2:55 am

Android app crashes when substacl opened

Post by annettes » Mon Nov 17, 2014 11:59 am

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.

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

Re: Android app crashes when substacl opened

Post by jacque » Mon Nov 17, 2014 7:54 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply