#Region Service Attributes
#StartAtBoot: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim hc As HttpClient
Dim req As HttpRequest
Dim timer1 As Timer
Dim mp As MediaPlayer
End Sub
Sub Service_Create
hc.Initialize("hc")
req.InitializeGet("http://www.siciliabit.com/prova/messaggio.txt")
timer1.Initialize("timer1",4000)
timer1.Enabled=True
End Sub
Sub Service_Start (StartingIntent As Intent)
timer1.Enabled=True
hc.Execute(req, 1)
StartServiceAt("", DateTime.Now + 0.1 * DateTime.TicksPerMinute, False)
End Sub
Sub timer1_Tick
hc.Execute(req, 1)
End Sub
Sub Service_Destroy
End Sub
Sub hc_ResponseSuccess(Response As HttpResponse, TaskId As Int)
?????????????????????????
End Sub