Sub Service_Start (StartingIntent As Intent)
sensorG.Initialize(sensorG.TYPE_ACCELEROMETER)
sensorG.StartListening("sensorG")
Notification1.Initialize
Notification1.OnGoingEvent = True
Notification1.Icon = "notifica72x72"
Notification1.Vibrate = True
Notification1.Sound = False
Notification1.SetInfo("L'app è in funzione", "Scrolla con vigore lo smartphone", ripidomis)
Service.StartForeground(1, Notification1)
If Not (TI.IsInitialized) Then
TI.Initialize("TI",1000)
End If
TI.Enabled=True
TotSecondiService=0
End Sub