Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim vrNoti As Notification
Dim GPS1 As GPS
End Sub
Sub Service_Create
' ver si este código va aquí o si va en Service_Start
GPS1.Initialize("GPS")
If GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(GPS1.LocationSettingsIntent)
Else
GPS1.start(0, 0)
End If
vrNoti.Initialize
vrNoti.Vibrate=True
vrNoti.Sound=False
vrNoti.Light=False
End Sub
Sub Service_Start (StartingIntent As Intent)
vrNoti.SetInfo("Kilometreador - Reinier", "Corriendo...", Main)
'vrNoti.Notify(1)
Service.StartForeground(1, vrNoti)
End Sub