android-Camera2Basic icon indicating copy to clipboard operation
android-Camera2Basic copied to clipboard

The sample captures 2 images

Open planetmarshall opened this issue 11 years ago • 3 comments

Each invocation of takePicture captures 2 images. This can be verified by adding logging info to ImageSaver.run(). Issue seen on Motorola Nexus 6.

planetmarshall avatar Feb 18 '15 14:02 planetmarshall

I've discovered that captureStillPicture is called twice during the state management in the CaptureCallback's 'process' method. See the following question on Stack Overflow : http://stackoverflow.com/questions/28586107/how-do-i-capture-a-single-image-with-the-android-camera2-api

planetmarshall avatar Feb 18 '15 20:02 planetmarshall

Thanks, we'll resolve soon.

PaulRashidi avatar Feb 18 '15 21:02 PaulRashidi

Hola Para mi la solución fue incluir esta linea cuando afState es null

image

jdarjona avatar Dec 03 '18 10:12 jdarjona