How to store downloaded images in to android SD card
<p>Hi I am developing app which downloads the images from the web site
and then i am displaying them as slide show.  Now I want save the
downloaded images into my SD card please help me.</p>

<p>My current attempt is:</p>

<pre><code>File imageFileFolder = new File(Environment
               .getExternalStorageDirectory(), "test");
imageFileFolder.mkdir();
File imageFileName = new File(imageFileFolder, date
               + pBean.getAuthorName());

InputStream fis = pBean.getInputStream();

byte[] data = new byte[fis.available()];
fis.read(data);
FileOutputStream fos = new FileOutputStream(imageFileName);
fos.write(data);
fos.close();
fis.close();
</code></pre>
