I was briefly looking into this earlier today. I believe it can be done with java.net.URL ( http://d.android.com/reference/java/net/URL.html ), but I'll probably have more information on Thursday.
On Aug 25, 4:54 pm, engin <[email protected]> wrote: > Hi I am tryin to connect server and download file from server. Here is > my code > > Ftp ftp = new Ftp("hostname","user","password"); > try { > ftp.connect(); > ftp.setLocalDir(new File("/sdcard")); > ftp.setDir("test"); > ftp.download("Button.apk"); > ftp.disconnect(); > > } catch (FtpException e) { > e.printStackTrace(); > } > I included external jar and imported com.jscape.inet.ftp.Ftp; this > code run succesfully in java but when I loaded to android it gives > error. > 1)Is there any resriction to connect ftp server or using external jar? > 2) Any other alternatives that I can use? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

