How to use ftp4-j to download a file from my server in android app?
<p>I'm making an android app. I have to download a file from my server and I'm using a ftp4-j library of java.
I wrote this code:</p>

<pre><code>    package example.cercapersone;

import it.sauronsoftware.ftp4j.FTPAbortedException;
import it.sauronsoftware.ftp4j.FTPClient;
import it.sauronsoftware.ftp4j.FTPDataTransferException;
import it.sauronsoftware.ftp4j.FTPException;
import it.sauronsoftware.ftp4j.FTPIllegalReplyException;

import java.io.File;
import java.io.IOException;

import android.os.AsyncTask;

public class Connessione extends AsyncTask&lt;Void, Void, Void&gt; {

    @Override
    protected Void doInBackground(Void... arg0) {
        FTPClient nuovo = new FTPClient();
        try {
            nuovo.connect("mio_server");
            nuovo.login("user", "pass");
            nuovo.changeDirectory("CercaPersone");
            nuovo.download("esempio_di_file.txt", new File("esempio_di_file.txt"));
            nuovo.disconnect(true);
        } catch (IllegalStateException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (FTPIllegalReplyException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (FTPException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (FTPDataTransferException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (FTPAbortedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } 
        return null;
    }
}
</code></pre>

<p>This code doesn't work!! The logcat says that the file doesn't exist, instead exists (I uploaded it with filezilla on my server). Help me?
Sorry for my bad english. I'm italian.</p>
