R rhanger Member Licensed User Longtime User Jan 4, 2017 #1 I am trying to implement FTP in to an app. I downloaded the net library as instructed and put the files in the .zip where instructed. But FTP does not show up as a an object as the tutorial said it should. I am pretty sure this is simple, but what else do I have to do to reference to a file in the libraries folder Dim ftp As FTP It does not recognize FTP as a declarable object. Thanks
I am trying to implement FTP in to an app. I downloaded the net library as instructed and put the files in the .zip where instructed. But FTP does not show up as a an object as the tutorial said it should. I am pretty sure this is simple, but what else do I have to do to reference to a file in the libraries folder Dim ftp As FTP It does not recognize FTP as a declarable object. Thanks
eurojam Well-Known Member Licensed User Longtime User Jan 5, 2017 #2 did you activated the library on the right side...? Upvote 0
R rhanger Member Licensed User Longtime User Jan 5, 2017 #4 Well I thought I had it working, but now although it lets me declare FTP. it errors when I run it. I commented out everthing but the declaration an still get the result below. I would appreciate any ideas. Thanks Sub Process_Globals Dim FTP As FTP End Sub Sub Globals End Sub Sub Activity_Create(FirstTime As Boolean) ' If FirstTime Then ' FTP.Initialize("FTP", "ftp.ebarcom.com", 21, "xxx", "xxxx") ' End If End Sub Upvote 0
Well I thought I had it working, but now although it lets me declare FTP. it errors when I run it. I commented out everthing but the declaration an still get the result below. I would appreciate any ideas. Thanks Sub Process_Globals Dim FTP As FTP End Sub Sub Globals End Sub Sub Activity_Create(FirstTime As Boolean) ' If FirstTime Then ' FTP.Initialize("FTP", "ftp.ebarcom.com", 21, "xxx", "xxxx") ' End If End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2017 #5 1. Don't use the Android emulator. It is slow and unreliable. You can use B4A-Bridge or USB debug mode to connect to a real device. 2. You should run your app in debug mode and see the full error message in the the logs. Upvote 0
1. Don't use the Android emulator. It is slow and unreliable. You can use B4A-Bridge or USB debug mode to connect to a real device. 2. You should run your app in debug mode and see the full error message in the the logs.
R rhanger Member Licensed User Longtime User Jan 5, 2017 #6 Thanks Erel I connected and ran it on an android phone with the same result. I uninstalled all instances of the program from the phone before starting. Cleared the Logs and captured the below: It looked like it installed correctly but it would not run. Does FTP need any other libraries other than NET. I included my library settings below. Any other ideas. I can host a teamviewer session for you if you think that will help Ray Upvote 0
Thanks Erel I connected and ran it on an android phone with the same result. I uninstalled all instances of the program from the phone before starting. Cleared the Logs and captured the below: It looked like it installed correctly but it would not run. Does FTP need any other libraries other than NET. I included my library settings below. Any other ideas. I can host a teamviewer session for you if you think that will help Ray
DonManfred Expert Licensed User Longtime User Jan 5, 2017 #7 I suggest to update your B4A. The newest Net library is probably not compatible with B4A 2 Upvote 0
R rhanger Member Licensed User Longtime User Jan 5, 2017 #8 Thank you Don After I got the current trial version it seemed to work. Upvote 0