title: Front camera is not opening in android platform
body: <p>When I click on capture photo icon in my application, by default it should open  front camera but every time it is opening back camera. I need to change it manually to open front camera.</p>
  
  <pre><code>     So can anyone please help me out on the above issue.
  </code></pre>
  
  <p>Below is my code to open front camera mode .</p>
  
  <pre><code>    private void getPhotoFromCamera() 
      {
          try 
          {
              PackageManager pm = mContext.getPackageManager();
              Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
             intent.putExtra("android.intent.extras.CAMERA_FACING",1);
              VisitorRegistrationFragment.this.startActivityForResult(intent,FROM_CAMERA);
           } 
           catch (Exception e) 
           {
              e.printStackTrace();
           } 
           catch (OutOfMemoryError e) 
           {
              e.printStackTrace();
           }
  
      }
  </code></pre>