rossco_pb Member Licensed User Longtime User Nov 22, 2015 #1 Just trying to get my (old) head around working with pages as opposed to B4a activities as I have my first B4i app with a couple of pages and had a timer on the first page that keep on firing and executing code even though I had changed focus to the second page. In Android the switching activities would have limited the execution to the active one but it appears in iOS the page that is not in focus also continues to execute... Is this correct? Thanks
Just trying to get my (old) head around working with pages as opposed to B4a activities as I have my first B4i app with a couple of pages and had a timer on the first page that keep on firing and executing code even though I had changed focus to the second page. In Android the switching activities would have limited the execution to the active one but it appears in iOS the page that is not in focus also continues to execute... Is this correct? Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 22, 2015 #2 rossco_pb said: Is this correct? Click to expand... That is correct. It is actually simpler in B4i (and B4J). Modules are never paused. You can use the Page_Disappear / Appear events to start or stop the times. Upvote 0
rossco_pb said: Is this correct? Click to expand... That is correct. It is actually simpler in B4i (and B4J). Modules are never paused. You can use the Page_Disappear / Appear events to start or stop the times.
rossco_pb Member Licensed User Longtime User Nov 22, 2015 #3 Cheers Erel and thanks for confirming that and as you advised I have used the Appear and Disappear events to turn the "rogue" timer off as part of changing focus. Was a bit confusing given the pages are in different modules... Upvote 0
Cheers Erel and thanks for confirming that and as you advised I have used the Appear and Disappear events to turn the "rogue" timer off as part of changing focus. Was a bit confusing given the pages are in different modules...