I've created a device/resolution picker using the android.hardware.camera2 APIs.
Now I'm trying to initialize a preview (and ultimately analysis and capture) CameraX usecases.
However, I'm having a bit of a challenge in converting one to the other. There doesn't seem to be a way to get a CameraSelector from the CameraDevice (or better, ID from CameraDevice.getID()). I looked at the documentation for CameraSelector, CameraInfo and CameraFilter and didn't find a way to do so.
Is there a method I'm missing?
Alternatively, might such an interface be added?
- Garrett