title: "Mirror" android inside camera in screen view
body: <p>I have the following <strong>java</strong> method:</p>
  
  <pre><code>private Camera openFrontFacingCameraGingerbread() {
          int cameraCount = 0;
          Camera cam = null;
          Camera.CameraInfo cameraInfo = new Camera.CameraInfo();
          cameraCount = Camera.getNumberOfCameras();
          for (int camIdx = 0; camIdx &lt; cameraCount; camIdx++) {
              Camera.getCameraInfo(camIdx, cameraInfo);
              if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
                  try {
                      cam = Camera.open(camIdx);
                  } catch (RuntimeException e) {
                      Toast.makeText(debug, "failed", Toast.LENGTH_LONG).show();
                  }
              }
          }
  </code></pre>
  
  <p>and what I'm looking forward to do is mirror the camera in the screen. This is, as soon as I open the app I would like the user to see himself but I'm not being able to accomplish this.</p>
  
  <p>Here is the onCreate method of the same class:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          //setContentView(R.layout.activity_main);
          openFrontFacingCameraGingerbread();
      }
  </code></pre>
  
  <p>Can someone help me on this one? Thank you very much</p>