Picture blurry in android
<p>Picture looks blurry when I get it from gallery.  I resize to 250w*300h using the following code: </p>

<pre><code>        if(bm!=null)
        {
            int width = bm.getWidth();
            int height = bm.getHeight();
            float scaleWidth = ((float) newWidth) / width;
            float scaleHeight = ((float) newHeight) / height;
            // create a matrix for the manipulation
            Matrix matrix = new Matrix();
            // resize the bit map
            matrix.postScale(scaleWidth, scaleHeight);
            // recreate the new Bitmap
            resizedBitmap = Bitmap.createBitmap(bm, 0, 0, width, height, matrix,true); 
        }
    }
    catch(Exception e)
    {
        e.printStackTrace();
    }
}
</code></pre>

<p>How can I solve this?.</p>
