tiwana wrote:
> HI,
> 
> I am having problem running FTP client on android. I know there are no
> FTP libraries on android,
> so i downloaded commons-net-1.4.1.jar and added it to my project.
> 
> But my app is not able to connect to any ftp server. This is the code,
> 
> import org.apache.commons.net.ftp.FTPClient;
> 
> ........
> 
> ftp.connect(server);
> ftp.login(username, password);
> ftp.logout();
> ftp.disconnect();
> 
> My app just hangs a ftp.connect(server).

Did you add the INTERNET permission to your AndroidManifest.xml file?

Are you someplace where firewalls may pose an issue?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to