Yes Mark,

I did add the INTERNET permission. I dont think there is an issue with
firewall, because i can use ftp from my computer
to the same ftp server. I have tried apps with HTTP post and they are
working correctly.

Thanks for the reply
Birjodh


On Apr 11, 12:44 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> tiwana wrote:
> > HI,
>
> > I am having problem runningFTPclient on android. I know there are no
> >FTPlibraries 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 anyftpserver. 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 aftp.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