B4A Tutorial Android Process and activities life cycle - Erel    Feb 12, 2018   (14 reactions) Activity_Pause is the last place to save important information.
Generally there are two types of mechanisms that allow you to save the activity state.
Information that is only relevant to the current application instance can be stored in one or more process variables.
Other information should be sto B4A Question Activity issues - Cableguy (first post)    Mar 08, 2016   (1 reaction) Basic activity life-cycle issue... Any activity, being it a B4x created app or any other, when in background for long risk being terminated by the OS and the ap will start fresh when brought to foreground.
A way to managed and minimise this standard behaviour is to use the StarterService to manage t B4i Tutorial ActivityClass: A cross-platform development class and strategy for b4i/b4a - Jack Cole    Jun 16, 2020   (17 reactions) I also developed a strategy for developing and maintaining the apps. In b4i, the ActivityClass handles the execution of the relevant Android activity life-cycle subs. It uses a NavigationController in the Main b4i module to handle the UI for the b4a Activity module.
Recommended strategy for devel B4A Question B4A activity life cycle/behaviour question - Unobtainius    May 13, 2021 I have a tablet that sits in a dock
In general the dock just supplies power to the tablet
When the tablet is removed from that dock my B4XPages application seems to be killed and restarts as if for the first time
This does not happen when connected to a normal power supply and plugging it in and unp B4A Question How to save Bluethooth connection state during a screen rotation - William Lancee (first post)    Feb 10, 2022   (1 reaction) The design consideration behind B4XPages is that it simplifies the activity cycle of Android by eliminating Pause and Resume. This helps in making the App cross-platform (Desktop, Android, iOS), but it also means a commitment to a given orientation. (As I mentioned, you can detect first how the user B4A Question Invoking multiple activities back-to-back w/o an event - Jeffrey Cameron (first post)    Jan 31, 2019   (2 reactions) The OS is only ever running one of your activities at a time. Your activity 1 would call activity 2, in activity 2 you have a "next" button which calls activity 3, or back to 1 if cancel, etc.
See: https://www.b4x.-process-and-activities-life-cycle.6487/ B4A Question How to ensure Page_Created event gets fired for a page when a B4A App is re-invoked immediately after exiting the app with B4XPage_ClosePage ? - AnandGupta (first post)    Feb 28, 2022   (2 reactions) Hi @beelze69 Glad that you understood the power and methods of B4XPages. I think you can mark Lucas post as solution. Actually we are so wired on Android Activity life cycle (this true if you try in AStudio or other Android development tools) that it takes a while to understand power of B4XPages. B4A Question Activities Cycle, Changing Orientations, and Object Initializations - Erel (first post)    Jun 20, 2015 I recommend you to start with this very important tutorial: Android Process and activities life cycle
1) Activity_Pause of the current activity will be called and then the next activity will be started. Events will only be raised in the visible activity. Use a service if you need a timer to continu Wish Wait For "Activity" - Cableguy (first post)    Jan 14, 2019   (3 reactions) Clearly you don't understand neither the underlying workings of the "wait for" neither the way ANDROID handles activities... You should start by reading the "Activities Life Cycle tutorial"... It has well aged over the years, just like a good wine... After reading it, I'm sure it will bring you a co B4A Question Problem with Activity_Create and Resumable Sub - OliverA (first post)    May 06, 2021   (4 reactions) Move all Wait For's to Activity_Resume. This is just how resumable subs work with Android's app life cycle. Android calls Activity_Create and upon it finishing, Activity_Resume is called (in B4A's case). With the first Wait For in Activity_Create, you are pretty much exiting/finishing Activity_Creat Page: 1   2   3   4   5   6   7   Powered by ColBERT |