Sub Process_Globals
Dim sServerFile As String
sServerFile="http://www.MyUrl.com"
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime=True Then
Activity.LoadLayout("View1")
HttpUtils.CallbackActivity="Main"
HttpUtils.CallbackJobDoneSub="JobDone"
PingWebsite
End If
End Sub
Sub PingWebsite
HttpUtils.Download("ping",sServerFile)
End Sub
Sub JobDone(Job As String)
Dim bSuccess As Boolean
bSuccess=HttpUtils.IsSuccess(sServerFile)
If bSuccess=True Then
Msgbox("Success!","")
End If
End Sub
Sub Activity_Resume
If HttpUtils.Complete = True Then JobDone(HttpUtils.Job)
End Sub