In CrimeCameraFragment onCreateView get SurfaceHolder and use deprecated method setType.