I have a question regarding the preview callbacks with Android 4.0.x.
I set up a camera, create a surface to display camera image on previewCallback
-event. Everything works fine.
But with Android 4.0.x neither onPreviewCallback
is called nor onPreviewCallbackWithBuffer
.
Is there a workaround for this issue?
I want to take a screen shot and do not want to use the takePicture()
-way because it freezes the live image for a short-time.
you can call setOneShotPreviewCallback
You must to call setPreviewCallback in surfaceChanged method, not only in surfaceCreated.