开发者

Camera Error 100 Detail

开发者 https://www.devze.com 2023-04-11 09:02 出处:网络
Can anyone tell me what exactly Camera Error 100 is? At the time of taking picture sometimes I am getting it. It happened when I called camera.takepicutre(); and shutter and raw callback are called,

Can anyone tell me what exactly Camera Error 100 is?

At the time of taking picture sometimes I am getting it. It happened when I called camera.takepicutre(); and shutter and raw callback are called, but jpeg-callback is not getting called.

I just want to know what exactly Camera Error 100 is and when it is generated. Already saw the original android camera code, but didn't find Camera Error 100 there. And this StackOverflow answer, but couldn't find any help. Because most of the time I am able to get the picture, but sometimes I am getting this error. After seeing the Android developer site they are saying release the camera resource and start a new one. But st开发者_开发百科ill didn't able to find the reason behind that?


maybe you used camera as this order

camera.stopPreview();
camera.takePicture(.....);
camera.startPreview();

but that is false. you should use it as

camera.startPreview();  //ignore it,if you have started it.
camera.takePicture(.....);
camera.startPreview();

I have tried it,it works fine!


Camera Error 100 - "Media server died. In this case, the application must release the Camera object and instantiate a new one."

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号