I'm using this method to take pictures in my app, however in onActivityResult
I try to load the picture like this:
if (requestCode == TAKE_PICTURE) {
if (resultCode == RESULT_OK) {
Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath);
// Do something with it
However the bitmap is null, if I set a breakpoint at that spot the image can be loaded normaly, however if I implement the procedure in a new app it's always ready to be loaded. What am I doing wrong?