camera startPreview failed

后端 未结 5 1195
猫巷女王i
猫巷女王i 2021-01-02 09:46

I am creating a camera app but I have problems on startPreview, it sends me:

java.lang.RuntimeException: startPreview failed

h

5条回答
  •  死守一世寂寞
    2021-01-02 09:59

    I had this error, and it's because I didn't call releaseCamera on the onPause the first time I start my app.
    After a reboot, everything works fine ^^

提交回复
热议问题