0

OSMdroid is opening zip files on the run very efficiently, do you know, which class in their svn is capable of opening zip file efficiently? Now I am stuck with ZipEntry, which is very slow for my app. Any ideas?

Thx

Waypoint
  • 17,283
  • 39
  • 116
  • 170

1 Answers1

2

OSMdroid is opening zip files on the run very efficiently, do you know, which class in their svn is capable of opening zip file efficiently?

They appear to use ZipEntry.

Now I am stuck with ZipEntry, which is very slow for my app. Any ideas?

Use Traceview and find out specifically where your problem lies.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • I am partially unzipping - like find folder 34 and display image picture.jpg. Problem is, Zipentry is iterating through all the files in ZIP. Is there any other archive, which can be used for "iterating like a folder"? Or something more quicker than ZIP? – Waypoint Jun 01 '12 at 17:05
  • @Waypoint: This has little to do with Android. Ask a fresh question, tagged `java`, about the most efficient way to retrieve something out of the middle of a ZIP archive. You might consider elaborating a bit on "find folder 34 and display image picture.jpg", so people know what you really mean. – CommonsWare Jun 01 '12 at 17:08
  • OK, created fresh question http://stackoverflow.com/questions/10854775/java-most-efficient-way-to-retrieve-something-out-of-the-middle-of-a-zip – Waypoint Jun 01 '12 at 17:24