Code example for Camera

Methods: setParameters

0
    /** 
     * Helper method for setting the camera parameters 
     */ 
    public void setParameters(Parameters params) {
        try { 
            mCamera.setParameters(params);
        } catch (Exception e) {
            Log.e(TAG, "Error setting camera parameters");
        } 
    } 
 
    /** 
     * Helper method for starting up the camera preview 
     */ 
    public void startCameraPreview(SurfaceHolder surfaceHolder) throws Exception {
        mCamera.setErrorCallback(mCameraErrorCallback);
        mCamera.setPreviewDisplay(surfaceHolder);
        mCamera.startPreview();
        Thread.sleep(WAIT_GENERIC);
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE