In my app I take a picture from camera and then I get that picture to do some image processing operations on same picture but when I get this picture with data.getExtras().g
Before broadcasting intent, you should include extras to it:
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, imageFileUri);
where imageFileUri could be output file name on SD card:
imageFileUri=Uri.parse("file:///sdcard/picture.jpg");
That would save image to known location and after taking image you would be able to process it.