I am using following code in onActivityResult but it is not working 

```
File file1 = new File( Environment.getExternalStorageDirectory().getAbsolutePath(),imagecapture);

            if (file1.exists()) {
              //Do action
                image=(ImageView)findViewById(R.id.image);
             Bitmap myBitmap = BitmapFactory.decodeFile(file1.getAbsolutePath());
          image.setImageBitmap(myBitmap);
       image.invalidate();

            }

```

But I am not able to get why it is not working I have also used 
[Android Camera Intent: how to get full sized photo?](https://stackoverflow.com/questions/6448856/android-camera-intent-how-to-get-full-sized-photo)
but it gives error on the line `mImageUri = Uri.fromFile(photo);`
Any help will be Appreciated.