Code example for Camera

Methods: reconnect

0
    MediaRecorder tempRecorder=recorder;
 
    recorder=null;
    tempRecorder.stop();
    tempRecorder.release();
    camera.reconnect();
  } 
 
  public void autoFocus() { 
    camera.autoFocus(getHost());
  } 
 
  public void cancelAutoFocus() { 
    camera.cancelAutoFocus();
  } 
 
  // based on CameraPreview.java from ApiDemos 
 
  @Override 
  protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    final int width=