I am trying to read data from a file from ftp server. This piece of code works perfectly in java when i run from my desktop computer. I copied over the same code to android
Remove:
;type=i
from your URL:
String s = "ftp://username:password@ftp.mysite.x10.mx:21/sg1996text.txt;type=i";
It works in my application.