Hi there I need Urgent help please I am trying to connect to a FTP server but it bombs out at
mFTPClient = new FTPClient();
with this error when I mouse over FTPClient();
Quote:
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.
I Have downloaded the library file for
import org.apache.commons.net.ftp.*;
From
http://commons.apache.org/net/download_net.cgi[
^]
The full connection method is
public boolean ftpConnect(String host, String username,String password, int port){
try {
mFTPClient = new FTPClient();
mFTPClient.connect(host, port);
if (FTPReply.isPositiveCompletion(mFTPClient.getReplyCode())) {
boolean status = mFTPClient.login(username, password);
mFTPClient.setFileType(FTP.BINARY_FILE_TYPE);
mFTPClient.enterLocalPassiveMode();
Toast.makeText(getBaseContext(),"Connected!!",Toast.LENGTH_LONG).show();
return status;
}
} catch(Exception e) {
Toast.makeText(getBaseContext(),"failed "+e+"/r/n Could not connect to"+host,Toast.LENGTH_LONG).show();
}
return false;
}
please as I am still new to android and java development ANY help would be appreciated
The toast's are just for device test that I am able to see where it succeeds and where it fails
Kind Regards
A.J Bosch