Thanks..Is it necessary to start the service from the "Main" module or the "Starter" service before calling Service.StartForeground or it will start automatically ?
B4X:
Sub Process_Globals
Dim n AsNotification
End Sub
Sub Service_Create
n.Initialize
.
.
.
n.SetInfo("Title", "Body", Main)
End Sub
Sub Service_Start (StartingIntent AsIntent)
Service.StartForeground(1, n)
End Sub