BitmapFactory.decodeFile returning null only in phone, not in emulator
<p>I've got problem with this code. I want load image to imageview from path. When a use this code everything works fine</p>

<pre><code>image.setImageBitmap(BitmapFactory.decodeFile(imagePath));
</code></pre>

<p>but when I use this one, on emulator is ok, but app stop working in phone and got me error, null at bitmap</p>

<pre><code>Bitmap bitmap = BitmapFactory.decodeFile(imagePath);
</code></pre>

<p><code>image.setImageBitmap(bitmap);</code></p>

<p>I need this code.</p>

<pre><code>Matrix mat = new Matrix();
mat.postRotate(90);
bitmap = BitmapFactory.decodeFile(imagePath);
bitmap_final = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mat, true);
image.setImageBitmap(bitmap_final);
</code></pre>

<p>Again, in emulator everything is fine, in phone not :/ Thanks for help and sorry for bad english</p>
