title: android png from url has its transparency showing as black
body: <p>I have tried loading a png-8 from a url to an imageview, but the transparency is lost and turns black.
  So i tried a png-24 and same problem.</p>
  
  <p>Here is the kicker, if I copy the image from the url, and paste it into Photoshop, the transparency is also black!</p>
  
  <p>However on the web, it shows just fine, on iOS, it shows perfectly.</p>
  
  <p>I set my decoder options, and even tried setting my window too in onCreate().</p>
  
  <pre><code>getWindow().getAttributes().format = android.graphics.PixelFormat.RGBA_8888;
  </code></pre>
  
  <p>then tried this separately</p>
  
  <pre><code>BitmapFactory.Options decOpt = new Options();       
  decOpt.inPreferredConfig = Bitmap.Config.ARGB_8888;
  </code></pre>
  
  <p>then tried them together. These were all the solutions I could find on the web.</p>
  
  <p>this too, doesn't work.</p>
  
  <pre><code>getWindow().getAttributes().format = android.graphics.PixelFormat.TRANSPARENT;
  </code></pre>
  
  <p>Nothing is working! Any ideas?</p>
  
  <p>Edit:</p>
  
  <p>Here is a url of an image I just randomly tried to see if it was only my image, and no this one has same problem.</p>
  
  <p><a href="http://img260.imageshack.us/img260/1124/girlag8.png" rel="nofollow">http://img260.imageshack.us/img260/1124/girlag8.png</a></p>
  
  <p>and this one as well</p>
  
  <p><a href="http://images.vectorimagesfree.com/2011/09/world-series-logo-famous-sports-icon-transparent-png0.png" rel="nofollow">http://images.vectorimagesfree.com/2011/09/world-series-logo-famous-sports-icon-transparent-png0.png</a></p>
  
  <p>So if you can get that one to display correctly in android it would likely fix my problem as well.</p>