openstack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 35
- Joined: Sun Feb 02, 2014 12:20 am
openstack
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
thanks
Re: openstack
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
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!
-
- Posts: 35
- Joined: Sun Feb 02, 2014 12:20 am
Re: openstack
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?
Re: openstack
Nah, the card is still open as well.Wouldn't "opencard" do the trick?

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!
-
- Posts: 35
- Joined: Sun Feb 02, 2014 12:20 am
Re: openstack
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
Thanks
Re: openstack
Done! 
We aim to please!
Simon

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!