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
Sub FTP_FileExists(Found As Boolean)
Sub FTP_ProcessComplete
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
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 IfFTP.FileOrFolderExist("glose2.apk","upgrade",False)
Sub FTP_FileExists(Found As Boolean)
If Found Then
End SubLog("FTP-OK")
FTP.SetStealthOn(False)
FTP.DownLoadFile(Starter.Xdir & "/upgrade","upgrade/","glose2.apk",False)
ElseFTP.SetStealthOn(False)
FTP.DownLoadFile(Starter.Xdir & "/upgrade","upgrade/","glose2.apk",False)
Log("FTP-NOK")
End IfSub FTP_ProcessComplete
If File.Exists(Starter.Xdir & "/upgrade", "glose2.apk") Then
End SubDim 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 Ifii.Initialize(ii.ACTION_VIEW, "file://" & File.Combine(Starter.Xdir & "/upgrade", "glose2.apk"))
ii.SetType("application/vnd.android.package-archive")
StartActivity(ii)
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: