I'm using FTP in my Main activity. Please confirm that I understand the following correctly:
1. FTP.Initialize goes in Activity_Create but not inside FirstTime?
2. In my Main Activity_Resume event I initiate a file download from my website but the FTP_DownloadCompleted event never fires. I set a break point in there and it never stops. When I start up my app I want it to download this file.
My Main Activity_Resume code:
In the debugger I see no errors so I don't know why the FTP_DownloadCompleted event does not stop at the break point?
3. FTP.Close should go in Activity_Pause?
Thank you...
1. FTP.Initialize goes in Activity_Create but not inside FirstTime?
2. In my Main Activity_Resume event I initiate a file download from my website but the FTP_DownloadCompleted event never fires. I set a break point in there and it never stops. When I start up my app I want it to download this file.
My Main Activity_Resume code:
B4X:
mShortFilename = "0.txt"
mLongFilename = "/public_html/remote/0.txt"
FTP1.DownloadFile(mLongFilename, True, mFilePath, mShortFilename)
In the debugger I see no errors so I don't know why the FTP_DownloadCompleted event does not stop at the break point?
3. FTP.Close should go in Activity_Pause?
Thank you...