#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.
End Sub
Sub Service_Create
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER
End Sub
Sub Service_Start (StartingIntent As Intent)
If Helpers.GetDetails.GetDefault("quickaccess", True) = False Then
Die
Return
End If
Service.StartForeground(Constants.NOTIFICATION_QUICK_ACCESS, Helpers.QuickAccessNotification)
StartServiceAt(Me, DateTime.Now + 30 * DateTime.TicksPerMinute, False)
End Sub
Sub Die
CancelScheduledService(Me)
StopService(Me)
End Sub
Sub Service_Destroy
End Sub