I use following code take a Picture from camera and to obtain picture\'s path.
...
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_
You are missing EXTRA_OUTPUT
, which may impact matters. My Galaxy Nexus can run this sample project successfully, which uses the following code to request the picture:
Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
output = new File(dir, "CameraContentDemo.jpeg");
i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(output));
startActivityForResult(i, CONTENT_REQUEST);