- Dec 12, 2022
- 357
- 2
I am working on a service that has a high importance that it runs when the device boots up.
But some users are reporting that it does not load on bootup.
I know the usual method to do this is to put this line in the service:
B4X:
But I also know that there is probably some behind-the-scenes code that also runs as part of B4A so that the "Starter" service will actually start before my particular "Bootup" service will start. So, since I don't know exactly how that hidden code works, I just want to make sure what I am trying is not causing new issues.
So, in an attempt to increase the chances of the service being started when the device powers on, I added these lines to the manifest:
B4X:
But some users are reporting that it does not load on bootup.
I know the usual method to do this is to put this line in the service:
B4X:
#StartAtBoot: True
But I also know that there is probably some behind-the-scenes code that also runs as part of B4A so that the "Starter" service will actually start before my particular "Bootup" service will start. So, since I don't know exactly how that hidden code works, I just want to make sure what I am trying is not causing new issues.
So, in an attempt to increase the chances of the service being started when the device powers on, I added these lines to the manifest:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید