问题
I am using the ZXing by the following code ContinuousCaptureActivity, and the zxing using (by default) the back camera to scan, how to make it scan using the front camera ?
回答1:
set extra SCAN_CAMERA_ID to the ID of the camera you want
usually 1 for the front one.
for example
intent.putExtra("SCAN_CAMERA_ID", 1);
来源:https://stackoverflow.com/questions/40141833/how-to-make-the-zxing-scan-using-the-front-camera-not-the-back-camera-in-android