title: Different size of same image on Web on Android
body: <p>I have an image like test.png.</p>
  
  <p>I need to purchase that image from the web and in another location I need to pick the same image from the drawable.</p>
  
  <p>The problem is that I have the same png on the web and in the drawable. When I show the image I have in the drawable, it shows in the right size but when I get it from the web, it appears smaller.
  Just to make it clear, it's just an example of my problem... I'm not actually using the same image, they are different images but with the same size. To verify, I've uploaded the same image on the web and on drawable and found that the same image appears with different sizes.
  What do I need to do to make both appear like on drawable mode?</p>
  
  <p>I've verified this:</p>
  
  <p>When I get the image I've saved in SD card using:</p>
  
  <pre><code>File sdCard = Environment.getExternalStorageDirectory();
  Fle directory = new File(sdCard.getAbsolutePath());
  File file = new File(directory, "teste.png");
  File InputStream streamIn;
  Bitmap bitmap = Bitmapfactory.decodeStream(streamin);
  ImageView image = new ImageView(c);
  image.setImageBitmap(bitmap);
  </code></pre>
  
  <p>The image appears bigger than this way:</p>
  
  <pre><code>Drawable img = Drawable.createFromPath(new File(Environment.getExternalStorageDirectory(), "teste.png").getAbsolutePath());
  ImageView image = new ImageView(c);
  image.setImageDrawable(img);
  </code></pre>
  
  <p>But in the first mode it appears smaller than when I get the image directly from the resource drawable using getResouces.getDrawable...</p>