startup sequence of an app

Fenix

New Member
Licensed User
Longtime User
Hi folks,

as this is my first post, I'd like to say hello to you all!! :)

My questions: As far as I understand it, I can have three different kinds of modules in my program (the activity, the code and the service module).

When I start my app which module is executed first (so I can put my preference loader in there)? The process module? How´s the order anyway? Process then (main)activity module? Do code modules get called only by process- and activity-modules? Is there a different startup order if my app get's started for the 1st (nth) time?

Sorry for my noob questions, but I couldn´t find the answers in the forum ;)

thx, Fenix
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
When the user presses on your application icon (or when you start it from the IDE) the main activity is started.

There are cases where a service may first start (widgets, start at boot option and others).

When the process is first created then FirstTime is True (in Activity_Create). You can use this variable to initialize process global variables.
 
Upvote 0
Top