Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(nid, CreateNotification( _
"Now running in the background.", _
"Tapping this notification will open the app.", _
Main ))
StartServiceAt(Me, DateTime.Now + 30 * DateTime.TicksPerMinute, True)
Log("At Service_Start")
StartGps
StartTimer
blnServiceStarted = True
End Sub