ok. looks like the dalvik vm found a piece of java bytecode it didn't 
like. this can happen with some java compilers. one solution is to 
compile the FTP library yourself, if the source is available.

HOWEVER

another is to use plain old URL.openStream(), like this -

InputStream     is = null;
FileOutputStream        fos = null;

try
{
String  url = "ftp://user:passw...@host/path";;
is = new URL (url).openStream ();

fos = new FileOutputStream ("/sdcard/yourfile");

byte[]  buffer = new byte [1024];

for (int cc = is.read (buffer);
        cc > 0;
        cc = is.read (buffer))
{
        fos.write (buffer, 0, cc);
}
}
catch (Exception inException)
{
// log and report
}
finally
{
// close "is" and "fos" if they are not null, catch/ignore IOException
}


let us know how it goes,

j



>here is log file:
>
>08-26 01:06:55.988: WARN/dalvikvm(1362): VFY: register1 v2 type 12,
>wanted 11
>08-26 01:06:55.988: WARN/dalvikvm(1362): VFY:  rejecting opcode 0x71
>at 0x0204
>08-26 01:06:55.998: WARN/dalvikvm(1362): Exception Ljava/lang/
>VerifyError; thrown during Lcom/jscape/inet/ftp/Ftp;.<clinit>



-- 
jason.vp.engineering.particle

--~--~---------~--~----~------------~-------~--~----~
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