Вопрос по android, camera – Camera.setPreviewDisplay () создает исключение [дубликат]

4

Possible Duplicate:
Android Camera will not work. startPreview fails

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

private void init(Context context)
{
    setFocusable(true);
    mRecording = false;
    fileRW = new FileReaderWriter();
    frameCount = 0;
    if(mCamera == null)
    {
        mCamera = Camera.open();
    }
    Parameters parameters = mCamera.getParameters();
    parameters.setPictureFormat(PixelFormat.JPEG);
    mCamera.setParameters(parameters);
    try {
        mCamera.setPreviewDisplay(surfaceHolder);
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    mCamera.startPreview();

}

Error: User Rate Limit ExceededmCamera.setPreviewDisplay(surfaceHolder);Error: User Rate Limit ExceededsetPreviewDisplay failedError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Syndacate

Ваш Ответ

2   ответа
7

"This method is deprecated. this is ignored, this value is set automatically when needed."

2

setPreviewDisplay()startPreview()stopPreview/setPreviewDisplay/startPreviewsurfaceChanged()

surfaceChanged()

Похожие вопросы