title: camera parameters.setFocusMode is not working
body: <p>I am trying to set the camera autofocus ON ... but whenever i set <code>setFocusMode</code> the application crashes.. </p>
  
  <pre><code>java.lang.RuntimeException: setParameters failed
  </code></pre>
  
  <p>my code is : </p>
  
  <pre><code>Camera.Parameters parameters = camera.getParameters();
  parameters.setFlashMode(Parameters.FLASH_MODE_TORCH);
  Camera.Size size = getBestPreviewSize(width, height, parameters);
  Camera.Size pictureSize = getSmallestPictureSize(parameters);
  
  if (size != null &amp;&amp; pictureSize != null) {
      parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);
      parameters.setPreviewSize(size.width, size.height);
      parameters.setPictureSize(pictureSize.width, pictureSize.height);
      parameters.setPictureFormat(ImageFormat.JPEG);
      camera.setParameters(parameters);
      cameraConfigured = true;
  }
  </code></pre>
  
  <p>Why is this error coming up?</p>