Hi Erel
I have seen that one and did already have service.startforeground in my code, but it still seems to stop occasionally.
I have added the start_sticky and will see how that goes.
I now have the following in my service module. (have removed other non related lines in this sample).
Is the following code look correct?
#Region Service Attributes
#StartAtBoot: true
#StartCommandReturnValue: android.app.Service.START_STICKY
#End Region
'Service module
Sub Process_Globals
Dim SI As SmsInterceptor
Dim sNotif As Notification
End Sub
Sub Service_Create
SI.Initialize2("SI", 999999)
sNotif.Initialize
sNotif.Icon = "icon"
sNotif.SetInfo("MyApp","Service Running",Main)
sNotif.Sound = False
sNotif.Notify(1)
Service.StartForeground(1,sNotif)
End Sub