Start Service from service

monki

Active Member
Licensed User
Longtime User
hi, it is possible to start from a service another service.

The following example does not work unfortunately

service1 is started from the main activity

Why?

B4X:
'Service module Service1
Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.

End Sub
Sub Service_Create

End Sub

Sub Service_Start (StartingIntent As Intent)
StartService(service2)
End Sub

Sub Service_Destroy

End Sub
 

abner69

Member
Licensed User
Longtime User
I tried your example and worked without problems! I use something like this within my apps too.

...Pablo
 
Upvote 0
Top