title: Prevent Image Scaling in Android App
body: <p>I have an image that I am downloading from the internet in my android application. I do not want this image to be resized/scaled. Is there anyway I can stop the image from being scaled?</p>
  
  <p>Here is my XML entry for the ImageView:</p>
  
  <pre><code>&lt;ImageView 
     android:id="@+id/conditionImage"
     android:scaleType="center"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:layout_below="@id/textMain"
     android:contentDescription="@string/noaaLogoDescription" /&gt;
  </code></pre>
  
  <p>Here is my code for showing it in the image view:</p>
  
  <pre><code>BitmapFactory.Options bmpOptions = new Options();
  bmpOptions.inScaled = false;
  URL url = new URL("URLPATHTOIMAGE");
  ImageView conditionImageView = (ImageView)findViewById(R.id.conditionImage);
  InputStream content = (InputStream)url.getContent();
  conditionImage = BitmapFactory.decodeStream(content, null, bmpOptions);
  
  conditionImageView.setImageBitmap(conditionImage);
  </code></pre>
  
  <p>I have tried changing the scaleType in the ImageView XML element to use matrix, center, and centerInside. My last try was using the above code to set inScale to false. Does anyone have any other ideas?</p>
  
  <p>The odd part is this is not happening in the emulator.</p>