| android Programming Glossary: r.seekCannot extract file from ZIP archive created on Android (device/OS specific) http://stackoverflow.com/questions/11039079/cannot-extract-file-from-zip-archive-created-on-android-device-os-specific  try  long eocd_offset findEOCDRecord r if eocd_offset 0  r.seek eocd_offset 16 offset of first CDE in EOCD  long cde_offset.. Entry long lfh_offset 0 long fskip dskip while true   r.seek cde_offset  if readInt r CDE_SIGNATURE got off sync  return..  if readInt r CDE_SIGNATURE got off sync  return  r.seek cde_offset 20 compressed file size offset   fskip readInt r.. 
 Cannot extract file from ZIP archive created on Android (device/OS specific) http://stackoverflow.com/questions/11039079/cannot-extract-file-from-zip-archive-created-on-android-device-os-specific  IOException RandomAccessFile r new RandomAccessFile zip rw try  long eocd_offset findEOCDRecord r if eocd_offset 0  r.seek eocd_offset 16 offset of first CDE in EOCD  long cde_offset readInt r read offset of first Central Directory Entry long.. long cde_offset readInt r read offset of first Central Directory Entry long lfh_offset 0 long fskip dskip while true   r.seek cde_offset  if readInt r CDE_SIGNATURE got off sync  return  r.seek cde_offset 20 compressed file size offset   fskip readInt.. long lfh_offset 0 long fskip dskip while true   r.seek cde_offset  if readInt r CDE_SIGNATURE got off sync  return  r.seek cde_offset 20 compressed file size offset   fskip readInt r  fix the header   r.seek lfh_offset 7  short localFlagsHi r.readByte.. 
 |