Downloading and decompress a zip-file in the background?
<p>I need to download a zip file and unpack it, in the background (in an AsyncTask I'd imagine).</p>

<p>As it is now, I've got a DefaultHTTPClient set up, and a ZipInputStream ready to go, but here's where I am stuck - I have no idea how to use these two together. Here's the relevant code in the AsyncTask:</p>

<pre><code>DefaultHttpClient http = new DefaultHttpClient();

        HttpGet method = new HttpGet("http://tf2b.com/downloads/imgshugo.zip");
        //method.addHeader("Accept-Encoding", "gzip");
        HttpResponse res = http.execute(method);

        InputStream is = res.getEntity().getContent();
        ZipInputStream zip = new ZipInputStream(is);
</code></pre>

<p>The last line there I'm not sure about at all, even. Any help would be appreciated!</p>
