title: Capturing Black image with Flash_ON in Nexus 4 in android
body: <p>I am using custom camera in android.When i am capturing image with Flash_ON, the image is too dark almost black in Nexus 4 only.But it is fine on other devices.Please help me .</p>
  
  <p>My code is given below :-</p>
  
  <pre><code>    CameraInfo cameraInfo = new CameraInfo();
      Camera.getCameraInfo(cameraId, cameraInfo);
      Camera.Parameters parameters = camera.getParameters();
  
      Size bestPreviewSize = determineBestPreviewSize(parameters);
      Size bestPictureSize = determineBestPictureSize(parameters);
      mSize = bestPreviewSize;
      parameters.setPreviewSize(bestPreviewSize.width,.setPreviewSize(bestPreviewSize.width,  
      parameters.setPictureSize(bestPictureSize.width, bestPictureSize.height);
  
      if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
      } else {
          parameters.setFlashMode(Parameters.FLASH_MODE_ON);
          parameters.setSceneMode(Parameters.SCENE_MODE_AUTO);
          parameters.setFocusMode(Parameters.FOCUS_MODE_AUTO);
      }
  
      camera.setParameters(parameters);
  </code></pre>