Android Question Main or Starter in B4XPages?

asales

Expert
Licensed User
Longtime User
Due this answer of Erel: "move the types declaration to the main module"
there is a better place - Starter or Main module - to put the variables, types and codes that will run and used in other pages?
For now, I use mostly the Starter and the B4XMainPage.
Do I need to concerne in put a huge amount of code and variables in this modules (Starter and Main) or there is no problem?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Don't use the starter service at all. Not cross platform and not very useful as it doesn't start when a receiver intent is intercepted.
i think this was related to "Type" declarations only, for correct serialization of objects.
That's true and it is related to cross platform handling of B4X types.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
Don't use the starter service at all. Not cross platform and not very useful as it doesn't start when a receiver intent is intercepted.
I don't use intents, but my concerne is about all the code in the Starter.
At the moment, in my Starter module, I initialize the databases, put variables to be access in other pages and check the informations about subscriptions.
So, is better to move my code and variables from Starter to Main module or B4XMainPage?
 
Last edited:
Upvote 0
Top