Obviously I'm doing something wrong, but cannot figure out what
is there anything wrong with this code ?
the log generates:
-----------------------------------------------------
** Activity (downloadupdates) Create, isFirst = true **
** Activity (downloadupdates) Resume **
/public_html/android_db/edbq_lite_rem.db, Success=false
java.lang.RuntimeException: Error retrieving file.
500 I won't open a connection to 10.0.2.2 (only to 99.107.150.69)
----------------------------------------------------------------
BTW none of the IPs refers to the FTP server....
where do I call: FTP_DownloadProgress ?
Arthur
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim FTP As FTP
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")
Activity.LoadLayout("DownloadUpdates")
Activity.Title = "Database Update"
FTP.Initialize("FTP", "ftp.dps.com", 21, "[email protected]","MyPassword")
End Sub
Sub lblDownload_Click
FTP.DownloadFile("/public_html/android_db/edbq_rem.db", False, File.DirRootExternal, "edbq_rem.db")
End Sub
is there anything wrong with this code ?
the log generates:
-----------------------------------------------------
** Activity (downloadupdates) Create, isFirst = true **
** Activity (downloadupdates) Resume **
/public_html/android_db/edbq_lite_rem.db, Success=false
java.lang.RuntimeException: Error retrieving file.
500 I won't open a connection to 10.0.2.2 (only to 99.107.150.69)
----------------------------------------------------------------
BTW none of the IPs refers to the FTP server....
where do I call: FTP_DownloadProgress ?
Arthur
Last edited: