Hi Guys and Girls
I have started a few weeks ago, my first serious B4XPages application...
Since I am still in my ascending learning curve, I am learning as I go... And although I am making steady progress, I can't stop thinking I am doing something wrong right from the start...
My implementation goes as this:
In Page_Created I load my Layout and do my user Auth
Then I do most my coding in other subs that relate (one way or another) to Page_Created...
My Page_Appear is completly blank.
However, when I laucnch my app, I get ...
As you can see, After loading Layout, I get the same Logs before Page_Appear, which is normal as my code is to run before page_appear, BUT I also get most of then AFTER page Appear.... So, this means my code Is running Twice!
I fear that as my app will get more and more features, this double run will eventually impact performance...
I need some sort of visual representation (like a flow chart) of how B4XPages work so that I can better implement my code.
Anyone?
I have started a few weeks ago, my first serious B4XPages application...
Since I am still in my ascending learning curve, I am learning as I go... And although I am making steady progress, I can't stop thinking I am doing something wrong right from the start...
My implementation goes as this:
In Page_Created I load my Layout and do my user Auth
Then I do most my coding in other subs that relate (one way or another) to Page_Created...
My Page_Appear is completly blank.
However, when I laucnch my app, I get ...
B4X:
** Activity (main) Create, isFirst = true **
Main B4XPage Initialization
*** mainpage: B4XPage_Created
Main B4XPage Layout Loading
FireBase Authoring Initialization
Paulo Gomes is Logged In
User has Logged In Before, we get values from KVS
LastKnownLatitude : 44.9108567
LastKnownLongitude : -0.6833079
Zooming to Last Known Position!
*** mainpage: B4XPage_Appear
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzn@af1d6eb
Paulo Gomes is Logged In
User has Logged In Before, we get values from KVS
LastKnownLatitude : 44.9108567
LastKnownLongitude : -0.6833079
Zooming to Last Known Position!
*** mainpage: B4XPage_PermissionResult [mainpage]
Getting current Location
*** mainpage: B4XPage_PermissionResult [mainpage]
Getting current Location
*** mainpage: B4XPage_PermissionResult [mainpage]
Getting current Location
*** mainpage: B4XPage_PermissionResult [mainpage]
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
** Service (starter) Destroy (ignored)**
As you can see, After loading Layout, I get the same Logs before Page_Appear, which is normal as my code is to run before page_appear, BUT I also get most of then AFTER page Appear.... So, this means my code Is running Twice!
I fear that as my app will get more and more features, this double run will eventually impact performance...
I need some sort of visual representation (like a flow chart) of how B4XPages work so that I can better implement my code.
Anyone?