Code example for Camera

Methods: reconnect

0
	public void onClick(View v) {
		if (recording) {
			recorder.stop();
			if (usecamera) {
				try { 
					camera.reconnect();
				} catch (IOException e) {
					e.printStackTrace();
				} 
			}			 
			// recorder.release(); 
			recording = false;
			Log.v(LOGTAG, "Recording Stopped");
			 
			//TODO: this should now launch the VideoEditor 
			 
		} else { 
			recording = true;
			recordStartTime = SystemClock.uptimeMillis();
			recorder.start();
			Log.v(LOGTAG, "Recording Started");