R ronovar Active Member Licensed User Longtime User Apr 4, 2016 #1 I have writen apk that works fine...i would like to start apk when andoid os boot up. I have done this in Starter service B4X: #Region Service Attributes #StartAtBoot: True #ExcludeFromLibrary: True #End Region But after android is power off and power on apk does not start at boot.
I have writen apk that works fine...i would like to start apk when andoid os boot up. I have done this in Starter service B4X: #Region Service Attributes #StartAtBoot: True #ExcludeFromLibrary: True #End Region But after android is power off and power on apk does not start at boot.
Descartex Well-Known Member Licensed User Longtime User Apr 4, 2016 #2 Are you sure? Some apps takes some time to start on system booting. Once happened to me, it last even 5 minutes to start my service from system ask for PIN (this is the event I consider as the system boot ending). Upvote 0
Are you sure? Some apps takes some time to start on system booting. Once happened to me, it last even 5 minutes to start my service from system ask for PIN (this is the event I consider as the system boot ending).
R ronovar Active Member Licensed User Longtime User Apr 4, 2016 #3 Apk does not start...do i need to put any code to Manifest Editor or any code somewhere in module? I just change from False to True in above code and apk does not start..i have waiting 5minutes and apk does not start. Upvote 0
Apk does not start...do i need to put any code to Manifest Editor or any code somewhere in module? I just change from False to True in above code and apk does not start..i have waiting 5minutes and apk does not start.
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2016 #4 You should use a different service, not the starter service. Make sure not to kill your app from the recent apps list as it will not start automatically. And you should of course run it in release mode. Upvote 0
You should use a different service, not the starter service. Make sure not to kill your app from the recent apps list as it will not start automatically. And you should of course run it in release mode.
R ronovar Active Member Licensed User Longtime User Apr 5, 2016 #5 Can You explain more Ereo avout to use a different service (i don't know how to use it only to enable from False to True in starter module). Upvote 0
Can You explain more Ereo avout to use a different service (i don't know how to use it only to enable from False to True in starter module).
DonManfred Expert Licensed User Longtime User Apr 5, 2016 #6 ronovar said: (i don't know how to use it only to enable from False to True in starter module Click to expand... you dont know how to enable in starter. so in result you KNOW how to enable it in any other service. What is the question then? Upvote 0
ronovar said: (i don't know how to use it only to enable from False to True in starter module Click to expand... you dont know how to enable in starter. so in result you KNOW how to enable it in any other service. What is the question then?
R ronovar Active Member Licensed User Longtime User Apr 5, 2016 #7 Ok question is: How can i enable in B4A that my apk will start at boot. If you could please write steps. Thanks. Upvote 0
Ok question is: How can i enable in B4A that my apk will start at boot. If you could please write steps. Thanks.
Descartex Well-Known Member Licensed User Longtime User Apr 5, 2016 #8 Create another service, not Starter, and set it to StartAtBoot, and be sure you run on release mode, as @Erel said. Upvote 0
Create another service, not Starter, and set it to StartAtBoot, and be sure you run on release mode, as @Erel said.
R ronovar Active Member Licensed User Longtime User Apr 5, 2016 #9 Ok..i will start another service and how can i set ti to startatboot? Could you please post some code? Upvote 0
Ok..i will start another service and how can i set ti to startatboot? Could you please post some code?
DonManfred Expert Licensed User Longtime User Apr 5, 2016 #10 ronovar said: Could you please post some code? Click to expand... See Post #1 You need to manually start the service once (from your app). For any further Service-Information see the Service tutorials or search the forum. Upvote 0
ronovar said: Could you please post some code? Click to expand... See Post #1 You need to manually start the service once (from your app). For any further Service-Information see the Service tutorials or search the forum.