// Create Intent to take a picture and return control to the calling application Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Create a file to save the image File imageFile = getOutputImageFile(); Uri imageUri = Uri.fromFile(imageFile); // Pass the image file name to the intent intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); // Start the image capture Intent startActivity(intent);