Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim ftp1 As FTP
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.
Dim btninvio As Button
Dim btncarica As Button
Dim btncancella As Button
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("tutorial")
ftp1.Initialize("ftp1","FTP_IP","21","USER","PASS")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btninvio_Click
ftp1.UploadFile(File.DirRootExternal,"photo.jpg",False,"photo.jpg")
End Sub
Sub btncarica_Click
End Sub
Sub btncancella_Click
End Sub
Sub ftp1_UploadCompleted (ServerPath As String, Success As Boolean)
If Success = True Then
Msgbox("","")
End If
End Sub