Android Question Run Code after Service has ended

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

Just wondering, if you have a sub in a Service and you stop the service from the sub will the code after that then work?

For example:

Service1
B4X:
Sub RunMe
StopService("Service1")
' .. will this code run if It was placed here ..
End Sub

Would the code run since the service has stopped ?

I understand that you need to have the service running to be able to run that sub in the service but just wondering if it would finish running that code or would it stop after the StopService part in the code since it was stopped ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…