Hi josejad
Thanks for the code. However, my main goal is a clean start.
If I put the login/registration logic inside B4XMainPage (even with RemoveAllViews), the B4XMainPage instance will always carry the memory overhead (variables, objects, and logic) of a process that only happens once.
Is there a way in B4X to start B4XMainPage completely clean, without any memory footprint from the app/user registration process? In my current 'Gatekeeper' approach, I use a separate Activity for registration and then Activity.Finish. This way, when B4XMainPage finally initializes, it contains only the code and resources directly related to the app's core operation, with zero 'leftover' RAM from the registration phase." thans for your reply