Code example for Camera

Methods: release

0
	} 
 
	// make sure to call release() otherwise you will have to force kill the app before  
	// the built in camera will open 
	public void surfaceDestroyed(SurfaceHolder previewHolder) {
		camera.release();
		camera = null;
	} 
 
	@Override 
	public void add(TiUIView overlayItem)
	{ 
		if (overlayItem != null) {
			View overlayItemView = overlayItem.getNativeView();
			if (overlayItemView != null) {
				overlayLayout.addView(overlayItemView, overlayItem.getLayoutParams());
			} 
		} 
	} 
}