pesquera Active Member Licensed User Longtime User Apr 8, 2014 #1 Hi All, I have an App that do a StartService to Intercept sms My question is: if I apply ExitApplication on my Main App, will also close that Service? (I want the service always on) Thanks
Hi All, I have an App that do a StartService to Intercept sms My question is: if I apply ExitApplication on my Main App, will also close that Service? (I want the service always on) Thanks
pesquera Active Member Licensed User Longtime User Apr 8, 2014 #3 Ok, thanks for you soon reply (y) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2014 #4 This is not 100% correct. Make sure to call StopService before calling ExitApplication, other Android may restart the process. Upvote 0
This is not 100% correct. Make sure to call StopService before calling ExitApplication, other Android may restart the process.
pesquera Active Member Licensed User Longtime User Apr 9, 2014 #5 Thanks Erel, Now, Is there a way to check if the service is off? So, I'll call StartService if needed What happens if I StartService many times? (on Main) Does the service starts many times? or, just don't start it because is already started Upvote 0
Thanks Erel, Now, Is there a way to check if the service is off? So, I'll call StartService if needed What happens if I StartService many times? (on Main) Does the service starts many times? or, just don't start it because is already started
lemonisdead Well-Known Member Licensed User Longtime User Apr 9, 2014 #6 To check if the service is running Code: Copy if not(isPaused(Service_Name)) then DoSomeThing else StartService(Service_Name) end if And if you call StartService many times, your service will restart (it will pass the Service_Create one time but many times Service_Start) Upvote 0
To check if the service is running Code: Copy if not(isPaused(Service_Name)) then DoSomeThing else StartService(Service_Name) end if And if you call StartService many times, your service will restart (it will pass the Service_Create one time but many times Service_Start)