I have this code:
startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), CAMERA_IMAGE);
That allows that user to take a photo. Now
protected void onActivityResult(int requestCode, int resultCode, Intent intent){ Uri u = intent.getData(); }
By the way... there's a bug with that intent in some devices. Take a look at this answer to know how to workaround it.