Get ID of currently open camera

android, camera

Solution

There isn't a way to get the id of the currently open android camera. I ended up storing the id when I opened it.

Problem

How can I get the ID of the currently open android camera from an android camera instance? I can't see it in the parameters and getCameraInfo requires the id as a parameter.

Original source