tags:

views:

2167

answers:

5

I'm looking for a java library library that works on the android that can download and resume files from an FTP server. Does anyone know of such a library. I've found lots of client apps, but no stand alone libraries.

+1  A: 

Did you read this resource? You can pick something from it. Specifically this page.

DroidIn.net
+3  A: 

Try using apache commons ftp

ftpClient.connect(InetAddress.getByName(server));
ftpClient.login(user, password);
ftpClient.changeWorkingDirectory(serverRoad);
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
BufferedInputStream buffIn=null;
buffIn=new BufferedInputStream(new FileInputStream(file));
ftpClient.enterLocalPassiveMode();
ftpClient.storeFile("test.txt", buffIn);
buffIn.close();
ftpClient.logout();
ftpClient.disconnect();
Bob.T.Terminal
I've started using apache commons ftp and it's a beaut.
MattK
very very inportant - active mode doesn't work on your android device. You must enter passive mode.so in between connect and login put this: ftpClient.enterLocalPassiveMode();
MattK
A: 

We've successfully tested our free, open-source Java FTP library (edtFTPj) as well as our commercial Java FTP/FTPS/SFTP library (edtFTPj/PRO) with Android. You can find edtFTPj at enterprisedt.com/products/edtftpj and edtFTPj/PRO at enterprisedt.com/products/edtftpjssl.

HansA
A: 

HI HansA Thanks for your reply. Really helped me alot.

Mr. Kakakuwa Bird
Mr. Bird, I think your answer didn't add much information and didn't actually have anything to do with the conversation.
MattK
A: 

Try AndFTP, it comes with Intent to upload/download for external applications: http://www.lysesoft.com/products/andftp/index.html

lysesoft