//mCamera = Camera.open(getCameraId());
Method openMethod = Class.forName("android.hardware.Camera").getMethod(
"openLegacy", int.class, int.class);
mCamera = (android.hardware.Camera) openMethod.invoke(
Method openMethod = Class.forName("android.hardware.Camera").getMethod(
"openLegacy", int.class, int.class);
mCamera = (android.hardware.Camera) openMethod.invoke(
null,getCameraId(), CAMERA_HAL_API_VERSION_1_0);
因为骁龙打开相机的方法用的是CAMERA_HAL_API_VERSION_1_0的方法