Thanks for reply Marcin,
*
*
*Yes I am downloading apk using ftp api but I am
using ftpClient.setFileType(FTP.BINARY_FILE_TYPE); api only*
*which is  Binary transfer only i guess.
*
On Wed, Jan 19, 2011 at 5:37 PM, Marcin Orlowski
<[email protected]>wrote:

> On 19 January 2011 13:03, Narendra Bagade <[email protected]>
> wrote:
> > Hi All ,
> > I am using android tablet.
> > I am trying to install apk from code.
> > after signing in apk ,I am going to install apk through code.
> > But while doing this I am getting error like "java.util.zip.ZipException:
> > EOCD not found; not a Zip archive? EOCD not found; not a Zip archive?
> > "
> >
> > note : I am using external jar file "commons-net-2.0.jar" in my
> application
> > for ftp api
>
> I'd check if APK you try to install is not invalid (as lack of EOCD
> indicates).
> If you fetch it via FTP ensure you use BINary transfer, not ASCII (which is
> default on some servers but also corrupts all non text files)
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Narendra
.

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

Reply via email to