Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
546 views
in Technique[技术] by (71.8m points)

android - Camera Error 100

I'm testing my application on Samsung Galaxy Ace, and I get the supported sizes with

cameraParams.getSupportedPictureSizes();

It works with all of them except of (320 x 240) - the preview turns black and I get this error: Camera Error 100

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

Do what the SDK says and release the camera object and make a new one.

http://developer.android.com/reference/android/hardware/Camera.html

Read this, too. It might help you: Droid's mediaserver dies on camera.takePicture()


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...