Android Question B4A StartAtBoot: False Not Working

mmieher

Active Member
Licensed User
Longtime User
I do NOT want the Starter Service to start at boot. This is because the first run of the App on a device requires some user configuration before the services will work.

The Service Attribute #StartAtBoot: False is not working for me. the service still starts.

Starter Module:
B4X:
#Region  Service Attributes 
    #StartAtBoot: False
    #ExcludeFromLibrary: True
#End Region

Log from App:

Logger connected to: samsung SM-T377V
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **

Any ideas?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
The Starter service starts when you start a service or an activity if not already running. It won't start by itself at boot or not. At boot meaning that the device had been restarted ; not that the Starter service won't start when you start a service or activity in your app.
 
Upvote 0
Top