Page 1 of 1

openstack

Posted: Fri Mar 21, 2014 1:39 am
by ferhan24badshah
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

Re: openstack

Posted: Fri Mar 21, 2014 2:31 am
by Simon
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

Re: openstack

Posted: Fri Mar 21, 2014 2:45 am
by ferhan24badshah
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

Posted: Fri Mar 21, 2014 2:52 am
by Simon
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

Re: openstack

Posted: Fri Mar 21, 2014 2:58 am
by ferhan24badshah
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

Re: openstack

Posted: Fri Mar 21, 2014 3:04 am
by Simon
Done! :)
We aim to please!

Simon