can not load my image into a bitmap class in android
<p>hi i have a problem with a bitmap and a picture located here:</p>

<pre><code>file:///mnt/sdcard/Android/data/com.dev.app/files/Pictures/20120924-092226.jpg
</code></pre>

<p>so i have a string with this url (the the file exists!)</p>

<p>now i need to get a bitmap, so i do:</p>

<pre><code>String str = "file:///mnt/sdcard/Android/data/com.dev.app/files/Pictures/20120924-092226.jpg";
Bitmap b = BitmapFactory.decodeFile(str);
</code></pre>

<p><strong>but b is always null. and i dont know why.</strong></p>

<p><strong>EDIT</strong>: i create the file before with a code like this:</p>

<pre><code>String filename = DateFormat.format("yyyyMMdd-hhmmss",Calendar.getInstance().getTime()) + ".jpg";

Uri imageUri = helper.createImageDestinationUri(null, filename);

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
startActivityForResult(intent, requestCode);
</code></pre>
