Bit Map image quality issue
<p>i am using Bitmap concept for taking images from galary as i was facing problem of Out of memory .below is my code it is working fine for solving out of memory issue but by using this code when i am zooming my image as i have requirement to show image on full screen ,that time image is becoming blurry can any body tell how to get good quality image ???</p>

<p>BitmapFactory.Options o = new BitmapFactory.Options();
                    o.inJustDecodeBounds = true;</p>

<pre><code>                try {
                    fis = new FileInputStream(selectedImagePath);
                } catch (FileNotFoundException e3) {
                    // TODO Auto-generated catch block
                    e3.printStackTrace();
                }
                BitmapFactory.decodeStream(fis, null, o);
                try {
                    fis.close();
                } catch (IOException e2) {
                    // TODO Auto-generated catch block
                    e2.printStackTrace();
                }
                final int REQUIRED_SIZE=80;
                int width_tmp=o.outWidth, height_tmp=o.outHeight;
                int scale=1;
                while(true){
                if(width_tmp/2&lt;REQUIRED_SIZE || height_tmp/2&lt;REQUIRED_SIZE)
                break;
                width_tmp/=2;
                height_tmp/=2;
                scale*=2;
                }
                BitmapFactory.Options op = new BitmapFactory.Options();
                op.inSampleSize = scale;
                try {
                    fis = new FileInputStream(selectedImagePath);
                } catch (FileNotFoundException e1) {
                    // TODO Auto-generated catch block
                    e1.printStackTrace();
                }
                bitmap = BitmapFactory.decodeStream(fis, null, op);
                try {
                    fis.close();
                } catch (IOException e1) {
                    // TODO Auto-generated catch block
                    e1.printStackTrace();
                }
</code></pre>
