takePicture failed when running a Camera Service

前端 未结 1 907
天命终不由人
天命终不由人 2021-01-27 06:43

im trying to run a Camera Service in the Background, as soon after the Service has started i get an error takePicture failed. I\'m new to Android,new to Stackoverfl

1条回答
  •  心在旅途
    2021-01-27 07:01

    just add SurfaceTexture st = new SurfaceTexture(MODE_PRIVATE); mCamera.setPreviewTexture(st); before mCamera.startPreview();

    0 讨论(0)
提交回复
热议问题