How to Access lowest camera from multi camera Android Phone while using Zxing android library?

Viewed 35

I want to access the lowest camera from multi camera android phone while using Zxing android library like if my phone has 3 camera (50 Mp, 8MP and 2MP), then i want to access 2 MP but it by default selects 50MP.

mCompoundBarcodeView = (CompoundBarcodeView) view.findViewById(R.id.barcode_scanner_view);
mCompoundBarcodeView.getBarcodeView().getCameraSettings().setFocusMode(CameraSettings.FocusMode.MACRO);

Above code is not working

0 Answers
Related