Skip to content Skip to sidebar Skip to footer

Camera.takepicture Throws Runtimeexception

I know this question has been asked many times but none of the answers has solved my question. In my app, I have used service which takes picture without preview in a background. M

Solution 1:

Finally I solved the issue by adding SurfaceTexture and setPreviewTexture....

Note: In version below 4.0 use dummy SurfaceView. In versions >= 4.0 use of SurfaceTexture (and setSurfaceTexture()) instead of SurfaceView.

https://stackoverflow.com/a/10248768/1713415

Post a Comment for "Camera.takepicture Throws Runtimeexception"