pinguo-yuyidong / Camera2

Android L Camera2 Demo
428 stars 207 forks source link

出现了一个错误:java.lang.IllegalArgumentException: Bad argument passed to camera service #4

Open akingyin1987 opened 8 years ago

Blker commented 8 years ago

To fix it, you need to change from mBuilder = camera.createCaptureRequest(CameraDevice.TEMPLATE_MANUAL); to mBuilder = camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);

tonyli0522 commented 8 years ago

@Blker After doing this,the texture rotated 90 degrees when I have token the first photo.What's wrong with it?

Blker commented 8 years ago

I don't know. I locked the activity in landscape when I used this.