#Region Service Attributes
#StartAtBoot: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Timer1 As Timer
End Sub
Sub Service_Create
Timer1.Initialize("Timer1",60000)
End Sub
Sub Service_Start (StartingIntent As Intent)
'Or wherever you start Recording
Timer1.Enabled = True
End Sub
Sub Service_Destroy
End Sub
Sub Timer1_Tick
Timer1.Enabled = False
'Call your stop recording method
End Sub