Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim job as HttpJob
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
JobDone (job As HttpJob) --------------> I do not know how to call up a sub with parameters , If I declare Job in global does not compile
End Sub
Sub JobDone (job As HttpJob)
job.Initialize("job",Me)
job.Download("http://www.google.it")
If job.Success = False Then
ProgressDialogShow2("No connection",False)
Else
ToastMessageShow("connection ok",True)
ProgressDialogHide
End If
End Sub