#Region Service Attributes
#StartAtBoot: true
#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 Started As Boolean = False
End Sub
Sub Service_Create
End Sub
Sub Service_Start (StartingIntent As Intent)
LogColor(" Service started !", Colors.Red)
If Not(Started) Then
Started = True
CallSubDelayed(Me, "StartMain")
End If Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
End Sub
Sub StartMainS
StartActivity(Main)
CallSubDelayed(Main, "Start")
End Sub
Sub Service_Destroy
End Sub