Sub Process_Globals
Private myThread As Thread
End Sub
Sub Service_Create
notification1.SetInfo("Servicetest", "Die App läuft nun im Hintergrund!", Main)
notification1.Light = True
notification1.Sound = False
notification1.Vibrate = False
notification1.AutoCancel = True
myThread.Initialise("myThread ")
End Sub
Sub Service_Start (StartingIntent AsIntent)
Service.StartForeground(1,n)
Dim args(0) As Object
myThread .Start(Me,"go_myThread ", args)
...
End Sub
Sub go_myThread
Do While true
deine routine
myThread.Sleep(5)
Loop
End Sub