title: ZipInputStream getNextEntry is null when extracting .zip files
body: <p>I'm trying to extract .zip files and I'm using this code:  </p>
  
  <pre><code>String zipFile = Path + FileName;
  
  FileInputStream fin = new FileInputStream(zipFile);
  ZipInputStream zin = new ZipInputStream(fin);
  
  ZipEntry ze = null;
  while ((ze = zin.getNextEntry()) != null) {
      UnzipCounter++;
      if (ze.isDirectory()) {
          dirChecker(ze.getName());
      } else {
          FileOutputStream fout = new FileOutputStream(Path
                  + ze.getName());
          while ((Unziplength = zin.read(Unzipbuffer)) &gt; 0) {
              fout.write(Unzipbuffer, 0, Unziplength);                    
          }
          zin.closeEntry();
          fout.close();
  
      }
  }
  zin.close();
  </code></pre>
  
  <p>but the problem is that, while debugging, when the code reaches the while(!=null) part, the zin.getNextEntry() is always null so it doesnt extract anything..<br>
  The .zip file is 150kb.. How can I fix this? </p>
  
  <p>The .zip exists</p>
  
  <p>Code I use to dl the .zip:  </p>
  
  <pre><code>URL=intent.getStringExtra("DownloadService_URL");
      FileName=intent.getStringExtra("DownloadService_FILENAME");
      Path=intent.getStringExtra("DownloadService_PATH");
       File PathChecker = new File(Path);
      try{
  
      if(!PathChecker.isDirectory())
          PathChecker.mkdirs();
  
      URL url = new URL(URL);
      URLConnection conexion = url.openConnection();
  
      conexion.connect();
      int lenghtOfFile = conexion.getContentLength();
      lenghtOfFile/=100;
  
      InputStream input = new BufferedInputStream(url.openStream());
      OutputStream output = new FileOutputStream(Path+FileName);
  
      byte data[] = new byte[1024];
      long total = 0;
  
      int count = 0;
      while ((count = input.read(data)) != -1) {
          output.write(data, 0, count);
          total += count;
  
          notification.setLatestEventInfo(context, contentTitle, "جاري تحميل ملف " + FileName + " " + (total/lenghtOfFile), contentIntent);
          mNotificationManager.notify(1, notification);
      }
  
  
      output.flush();
      output.close();
      input.close();
  </code></pre>