I launch an activity to capture a picture from camera:
Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null);
i.putExtra("return-data", true);
startActivityForResult(i, PICK_FROM_CAMERA);
Can you please tell me how to get the URI of the capture picture ?
I'm new to Android, but I believe you have to add some extra information to the Intent. The ACTION_IMAGE_CAPTURE documentation says:
So, I think you should be able to add in this line:
And then you should be able to get it from the URI in the onActivityResult.
But I haven't tested this. Hope I haven't lead you astray.
To get the image that was just taken from the camera you would do the following