title: Android Camera Touch Focus
body: <p>I am trying to make a custom camera application I want to let the users can choose the focus mode in this application.</p>
  
  <p>The focus mode is auto focus on default .</p>
  
  <p>if I want to set the cameraView to be clickable such that when I touch one point onto the screen, the focus of the camera is on that point?   how can be start with?
   the below is my code</p>
  
  <pre><code>public void takePhoto(File photoFile, String workerName, int width, int height,   int        quality) {
  if (getAutoFocusStatus()){
      camera.autoFocus(new AutoFocusCallback() {
          @Override
          public void onAutoFocus(boolean success, Camera camera) {
              camera.takePicture(shutterCallback, rawCallback, jpegCallback);
          }
      }); 
  }else{
      camera.takePicture(shutterCallback, rawCallback, jpegCallback);
  }
  
  this.photoFile = photoFile;
  this.workerName = workerName;
  this.imageOutputWidth = width;
  this.imageOutputHeight = height;
  }
  
  public void takePhoto(File photoFile, int width, int height, int quality) {
  takePhoto(photoFile, null, width, height, quality);
  }
  </code></pre>