Bitmap issue in Samsung Galaxy S3
<p>I wrote a method to change Bitmap from camera shot :</p>

<pre><code>public Bitmap bitmapChange(Bitmap bm) {
    /* get original image size */
    int w = bm.getWidth();
    int h = bm.getHeight();

    /* check the image's orientation */
    float scale = w / h;

    if(scale &lt; 1) { 

        /* if the orientation is portrait then scaled and show on the screen*/
        float scaleWidth = (float) 90 / (float) w;
        float scaleHeight = (float) 130 / (float) h;
        Matrix mtx = new Matrix();
        mtx.postScale(scaleWidth, scaleHeight);
        Bitmap rotatedBMP = Bitmap.createBitmap(bm, 0, 0, w, h, mtx, true);
        return rotatedBMP;

    } else {

        /* if the orientation is landscape then rotate 90 */
        float scaleWidth = (float) 130 / (float) w;
        float scaleHeight = (float) 90 / (float) h;
        Matrix mtx = new Matrix();
        mtx.postScale(scaleWidth, scaleHeight);
        mtx.postRotate(90);
        Bitmap rotatedBMP = Bitmap.createBitmap(bm, 0, 0, w, h, mtx, true);
        return rotatedBMP;
    }
}
</code></pre>

<p>It works fine in another Android device, even Galaxy Nexus but in Samsung Galaxy S3, the scaled image doesn't show on screen.</p>

<p>I tried to mark the <code>bitmapChange</code> method , let it show the original size Bitmap on screen but S3 also show nothing on screen.</p>

<p>The information of variables in eclipse is <a href="https://dl.dropbox.com/u/90416799/s3_bitmap_info.png" rel="nofollow">here</a>.
The information of sony xperia is <a href="http://ppt.cc/w03U" rel="nofollow">here</a>.</p>

<p>xperia and other device is working fine.</p>

<p>Edit:</p>

<p>I got some Strange log in LogCat,</p>

<p>when i take a picture the LogCat show some message:</p>

<p><a href="https://dl.dropbox.com/u/90416799/log.png" rel="nofollow">here</a></p>

<p>I never use video...</p>

<p>why video is started??</p>
