coslad Well-Known Member Licensed User Longtime User Jan 12, 2013 #1 Hi I have a question, how some program do when the service module is killed with the task manager to reload them self. I tried with service foreground but when the task manager kill the process it remains killed. Is it a limit for b4a or there is a way? Thanks in advance. Inviato dal mio H9500 con Tapatalk 2
Hi I have a question, how some program do when the service module is killed with the task manager to reload them self. I tried with service foreground but when the task manager kill the process it remains killed. Is it a limit for b4a or there is a way? Thanks in advance. Inviato dal mio H9500 con Tapatalk 2
derez Expert Licensed User Longtime User Jan 12, 2013 #2 I'm not sure if this is what you want, but you can set the service to restart from the service_start sub by this command: Code: Copy StartServiceAt("", DateTime.Now + dt ,True) The service will start after dt time even it has been killed. Upvote 0
I'm not sure if this is what you want, but you can set the service to restart from the service_start sub by this command: Code: Copy StartServiceAt("", DateTime.Now + dt ,True) The service will start after dt time even it has been killed.
coslad Well-Known Member Licensed User Longtime User Jan 12, 2013 #3 Unfortunately task manager kill the shedulated task, so the only way to restart the service is to reboot the device, cold reboot, becouse with warm reboot sometime the service doesn't start. Inviato dal mio GT-P7510 con Tapatalk 2 Upvote 0
Unfortunately task manager kill the shedulated task, so the only way to restart the service is to reboot the device, cold reboot, becouse with warm reboot sometime the service doesn't start. Inviato dal mio GT-P7510 con Tapatalk 2
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2013 #4 Is it a limit for b4a or there is a way? Click to expand... No. This is how Android works. Some applications add intent filters for common intents such as time updated and others. This allows you to reschedule your service. Upvote 0
Is it a limit for b4a or there is a way? Click to expand... No. This is how Android works. Some applications add intent filters for common intents such as time updated and others. This allows you to reschedule your service.