title: Android Camera2 front camera
body: <p>I recently noticed that the Camera API is deprecated and I found the new API called Camera2.</p>
  
  <p>I have read the documentation but I don't really understand it.</p>
  
  <p>So my question is: how do I preview the front camera with the new camera api?</p>
  
  <p>Just a preview, not recording.</p>
  
  <p>I want to use this new API because in the future I'm guessing the current Camera API will be replaced and stop working.</p>
  
  <p>So I want to be prepared and just sit and watch while everyone panics. XD</p>