This should work for you...

        InputStream is = conn.getInputStream();
        ZipInputStream zis = new ZipInputStream(new BufferedInputStream(is));
        ZipEntry entry;

        while ((entry = zis.getNextEntry()) != null) {
                int size = 0 ;
                byte[] buffer = new byte[2048];

                FileOutputStream fos = openFileOutput(entry.getName(),
Activity.MODE_WORLD_WRITEABLE);
                while ((size = zis.read(buffer, 0, buffer.length)) != -1) {
                        fos.write(buffer, 0, size) ;
                }
                filesProcessed++ ;
                if ( fileHash.get(entry.getName()) != null ) {
                        fos.flush();
                        fos.close();
                }
        }

-John Coryat

"Radar Now!"

"What Zip Code?"
-- 
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