Downloading image from internet losses transparency
<p>When I download a image from internet and I save to the sdcard, the image has a black background when the original images hasn't</p>

<pre><code>httpRequest = new HttpGet(fileUrl);
 HttpClient httpclient = new DefaultHttpClient();
 HttpResponse response = (HttpResponse) httpclient.execute(httpRequest);
 HttpEntity entity = response.getEntity();
 BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
 InputStream instream = bufHttpEntity.getContent();
 Bitmap    bm = BitmapFactory.decodeStream(instream);
 String file_path = Environment.getExternalStorageDirectory()+File.separator+"basquetMobile-  images";
 File dir = new File(file_path);     
 if(!dir.exists())
        dir.mkdirs();
 File file = new File(dir, tipoImagen+idEquipo+".jpg");
 FileOutputStream fOut = new FileOutputStream(file);
 bm.compress(Bitmap.CompressFormat.JPEG, 75, fOut);
 fOut.flush();
 fOut.close();
</code></pre>

<p>Thanks for the help!!</p>

<p><strong>>>>>>>>>>>>>>>>>>>>>>>[SOLUTION]&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;>>>>></strong></p>

<p>change:</p>

<p>File file = new File(dir, tipoImagen+idEquipo+"<strong>.png</strong>");</p>

<p><strong>bm.compress(Bitmap.CompressFormat.PNG, 100, fOut);</strong></p>

<p><strong>>>>>>>>>>>>>>>>>>>>>>>THANKS!&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;>>>>></strong></p>
