Android Tutorial Android FTP tutorial

Status
Not open for further replies.

Fabrice La

Active Member
Licensed User
Longtime User
No, initialize is in Activity_create.

Do I have to re initialize juste after FTP.closeNow in the program ?
 

vb1992

Well-Known Member
Licensed User
Longtime User
If you are on a hosting web server you might not get
a file directory listing with this command:

FTP.List("/")


You should try using this instead:


FTP.List("./")


Worked for me, to get a directory listing for my home directory...
 

AscySoft

Active Member
Licensed User
Longtime User
How to set ftp.Timeout?
I try to upload some files without internet access...and I waited approx. 40-60 seconds until Upload_Completed return success=false value
How to set it say only for 20 sec?
The user may loose patience, and from there anything wrong could happen due to Activity life cycle...
PS: in my case I uploaded successfully some files, in less than 3 sec!
 

AscySoft

Active Member
Licensed User
Longtime User
I done that, CloseNow was executed fine, but Upload_Completed was not trigger right after, but only after 60 sec again! Is this a bug?
Does ftp.CloseNow suppose to trigger Upload/Download_complete subs?
If not, how to force trigger them? How to cancel remaining tasks?

EDIT: I clocked the time, and only after 4 minutes it gives timeout error! (I almost loose my cool, reaching for my gun...rum pa pa pum, my monitor down! )
 
Last edited:

cirollo

Active Member
Licensed User
Longtime User
FTP errors trapping

Hi Erel!

how can I trap FTP Errors?

for exaple, host unavailable or user/pass not correct? I would like to stop attempting to connect to FTP and send a message to the user...

thanks

cirollo
 

ssolid

Member
Licensed User
Longtime User
Where is FTP library

Where is FTP Library?I did not find it!Give me a link!
 

Cdymock

Member
Licensed User
Longtime User
FTP List Filters

Hi,

I was wondering is it possible to apply a filter to the list command? So that it only brings back files that have a file name that begins with certain characters for instance, or does this have to be done on the device ?

Cheers

Chris
 

Cdymock

Member
Licensed User
Longtime User
Hi,
Even though I'm not too familiar with FTP, I didn't think so, thought I would ask on the off chance.

Thanks for taking th time to reply.

Cheers

Chris
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…