title: How to launch front camera with intent?
body: <p>I'm using an intent to open the camera with the native application:</p>
  
  <pre><code>    Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  
      Uri photoUri = Uri.fromFile(getOutputPhotoFile());
      intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);
  
      startActivityForResult(intent, CAMERA_PHOTO_REQUEST_CODE);
  </code></pre>
  
  <p>Every time the camera that is opened (front/back camera) is like the last time this native camera application was open. Meaning that if the last time I closed the native camera application the back camera was active, so when I launch the intent for camera, the back camera will be active.</p>
  
  <p>I want to launch directly the front camera with the intent. Does anybody know how to do that?</p>