Android Question FTP_Auto Library - sending message to waiting queue (ftp_listcompleted)

Antonio Ferreira

Member
Licensed User
Longtime User
Excuse_me (Problem solved)
I Had an Activity.finish after call FTP.FileOrFolderExist("glose2.apk","upgrade",False)


With FTP_Auto Library when I run FTP.DownLoadFile(...) or FTP.FileOrFolderExist(...) I always get the message:
"sending message to waiting queue (ftp_listcompleted)"
When I run FTP.MakeDir(...) or FTP.UpLoadFile(...) all is OK

This is my code:

FTP.Initialize(Activity,Me,Mserver,Muser,Mpassword,Mporta,False,False)
FTP.SetProcessCompleteOn(True)
If FTP.IsInitialized Then
FTP.SetStealthOn(True)
FTP.FileOrFolderExist("glose2.apk","upgrade",False)
End If

Sub FTP_FileExists(Found As Boolean)
If Found Then
Log("FTP-OK")
FTP.SetStealthOn(False)
FTP.DownLoadFile(Starter.Xdir & "/upgrade","upgrade/","glose2.apk",False)​
Else
Log("FTP-NOK")​
End If​
End Sub


Sub FTP_ProcessComplete
If File.Exists(Starter.Xdir & "/upgrade", "glose2.apk") Then
Dim ii As Intent
ii.Initialize(ii.ACTION_VIEW, "file://" & File.Combine(Starter.Xdir & "/upgrade", "glose2.apk"))
ii.SetType("application/vnd.android.package-archive")
StartActivity(ii)​
End If​
End Sub

I set the last parameter in the initialize command to True / False without sucess
With the same "code" if I change the line "FTP.FileOrFolderExist("glose2.apk","upgrade",False)" with :

FTP.DownLoadFile(Starter.Xdir & "/upgrade","upgrade/","glose2.apk",False) - I have the same error

FTP.MakeDir("upgrade4") - is OK
FTP.UpLoadFile(Starter.Xrubricas,"Workorders","sign1001230_1.png") - is OK

FTP_Auto Version 1.06
B4A Version 6.0

Thanks
 
Last edited:
Top