code: public static Intent photoCapture(String file) {
          Uri uri = Uri.fromFile(new File(file));
          Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
          intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
          return intent;
      }
docs: Call standard camera application for capturing an image
  
  @param file Full path to captured file