Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(nid, CreateNotification("Tapping this notification will open the app."))
StartServiceAt(Me, DateTime.Now + 30 * DateTime.TicksPerMinute, True)
If IsPaused(Main) Then
StartActivity(Main)
End If
InitializeWhatsNeeded ' <--- I don't know what this routine does and then if this line should be written before the "If IsPaused..."
End Sub