How to get stacks not to show at the same time

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
William Jamieson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 212
Joined: Fri Feb 01, 2013 1:31 am
Contact:

How to get stacks not to show at the same time

Post by William Jamieson » Wed Jan 07, 2015 3:20 am

Ususally Android only shows one stack at a time. However, on Android, I have a stack this is called "login" and a stack called "app". When the user logs in successfully in the login stack, the user is brought to the "app" stack using

Code: Select all

go to card 1 of stack "app"
The problem with this is that sometimes parts of the "login" stack are shown on the "app" stack so what I am seeing is a picasso drawn picture of a stack. The problem is exacerbated by going from the "app" stack to the "login" stack via the code:

Code: Select all

go to card 1 of stack "login"
How does one keep this from happening?

-Will

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: How to get stacks not to show at the same time

Post by magice » Wed Jan 07, 2015 3:41 am

How about

Code: Select all

set the visible of stack "login" to false
set the visible of stack "app" to true
then just reverse it when you go back.

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

Re: How to get stacks not to show at the same time

Post by jacque » Wed Jan 07, 2015 7:57 pm

I've seen the same thing on Android. It's a bug. It would be good if you could report it in the QCC.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

William Jamieson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 212
Joined: Fri Feb 01, 2013 1:31 am
Contact:

Re: How to get stacks not to show at the same time

Post by William Jamieson » Fri Jan 09, 2015 10:32 am

Oh ok. Good suggestion Jacque. Yeah, It is really hard to predict. I have not had a chance to test setting the visibility yet. But hopefully I can do that with Android. I moved around some script, used some locking screens and put in a wait command and havent seen the bug since, but don't know how long that solution will work.

Post Reply