Awesome man, thanks for this article, helped me to start with camera2 API, but I have one question…
Bruno Ferrari

It’s been a while since I worked with this API, but here are two things you’ll find helpful:

My hacky solution to that problem in a side project. The link above directs you straight to the CameraFragment which handles camera preview.

Lib that I’ve found recently. It claims to make all that pain with both camera APIs go away.

Hope any of that helps. Cheers

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.