openstack

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
ferhan24badshah
Posts: 35
Joined: Sun Feb 02, 2014 12:20 am

openstack

Post by ferhan24badshah » Fri Mar 21, 2014 1:39 am

I need some clarification on the function of "openStack". Does the code within "on openStack" and "end openStack" run only when an app is opened for the first time on a phone or does it run every time the app is opened? Does "opencard" behave in the same way?

thanks

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: openstack

Post by Simon » Fri Mar 21, 2014 2:31 am

Hi ferhan24badshah,
openStack does only run when the stack first opens.
I believe what you are seeing is that even if you pressed the "Home" button and you app leaves the screen it is actually still running in the background. When you launch the stack again it does not get an openStack message.
Eventually when the device needs the RAM your app will truly shut down by the device.

I'll put in an enhancement request for a message sent when the app loses focus. If they can add that all your and my problems with this behavior could be worked around.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ferhan24badshah
Posts: 35
Joined: Sun Feb 02, 2014 12:20 am

Re: openstack

Post by ferhan24badshah » Fri Mar 21, 2014 2:45 am

Simon wrote:Hi ferhan24badshah,
openStack does only run when the stack first opens.
I believe what you are seeing is that even if you pressed the "Home" button and you app leaves the screen it is actually still running in the background. When you launch the stack again it does not get an openStack message.
Eventually when the device needs the RAM your app will truly shut down by the device.

I'll put in an enhancement request for a message sent when the app loses focus. If they can add that all your and my problems with this behavior could be worked around.

Simon

Ahh I see...so if I correctly understand....there is no way for me to code a stack so that whenever it is open (but still running in the background) it runs a code? Wouldn't "opencard" do the trick?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: openstack

Post by Simon » Fri Mar 21, 2014 2:52 am

Wouldn't "opencard" do the trick?
Nah, the card is still open as well. :(

Here I filed this
http://quality.runrev.com/show_bug.cgi?id=11965
Add to it if you like.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ferhan24badshah
Posts: 35
Joined: Sun Feb 02, 2014 12:20 am

Re: openstack

Post by ferhan24badshah » Fri Mar 21, 2014 2:58 am

damn. alright thanks for the help Simon. I'll check out that link. Do you think you can check out my other post that I posted today? http://forums.runrev.com/viewtopic.php?f=7&t=19690

Thanks

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: openstack

Post by Simon » Fri Mar 21, 2014 3:04 am

Done! :)
We aim to please!

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply