I have an application that runs one service with a partial lock etc to keep it running all the time.
I have another service that needs to stay alive until I turn it off.
Do I need to apply a partial lock to this service as well to make sure it stays running until I turn it off, given that the other service is holding a partial lock?
In fact do I need to apply all the following to every service, even when the first one I run is supposed to run all the time?
Sub Process_Globals
Private lock As PhoneWakeState
End Sub
Sub Service_Create
lock.PartialLock
Service.StartForeground(nid, CreateNotification("Message"))
End Sub
Sub Service_Start (StartingIntent As Intent)
Service.StopAutomaticForeground
End Sub