Code example for Camera

Methods: releasestopPreview

0
        // Ignored, the Camera does all the work for us 
    } 
 
    @Override 
    public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
        mCamera.stopPreview();
        mCamera.release();
        return true; 
    } 
 
    @Override 
    public void onSurfaceTextureUpdated(SurfaceTexture surface) {
        // Ignored 
    } 
}