title: How to create a Drawable from a stream without resizing it?
body: <p>If I have the minimum target SDK for my app set to 4 then all calls to Drawable.createFromStream resize images.</p>
  
  <p>e.g. if the source image is 480px wide and the Android device my app is running on has a density of 1.5 then the following code returns a BitmapDrawable with a width of 320</p>
  
  <pre><code>URL url = new URL("http://www.examples.com/something.png");
  
  Drawable d = Drawable.createFromStream(url.openStream(), "something.png");
  </code></pre>
  
  <p>Is there a method to force it to be unchanged or specify the scale (ldpi/mdpi/hdpi etC) to return an image from an InputStream?</p>
  
  <p>Edit: Solution from below.</p>
  
  <pre><code>Bitmap b = BitmapFactory.decodeStream(inputStream);
  b.setDensity(Bitmap.DENSITY_NONE);
  Drawable d = new BitmapDrawable(b);
  </code></pre>