How to load different size of image from sdcard android?
<p>I want load 4mb,19mb,3mb size images from sd card into image view.</p>

<pre><code>BitmapFactory.Options options=new BitmapFactory.Options();
 options.inJustDecodeBounds=true;
 InputStream inputStream=new BufferedInputStream(new FileInputStream(fileName));
 options.inSampleSize=2;
 options.inJustDecodeBounds=false;
 Bitmap bmp=BitmapFactory.decodeFile(fileName,options);
</code></pre>

<p>when i use this code, i can't get exact size for all images. Based on the screen capablity the images should be load. If a screen have the capablity to load 19mb image that time i don't want to use option.insampleSize=2. If it doesn't have that, that time only i want to decrease the size of image only for that 18Mb and other images i don't want to do like that.</p>
