I'm trying to work with Android's camera API 2, and I had a bug which I wasn't able to fix. The function getCameraIdList() returns an empty array for some reason, although I do have 2 working cameras on my emulator (I checked it using the Android camera app). I am working on an emulated device with the following details: Device: Nexus S API level: androd 4.4.2, API level 19 CPU: intel atom x86 front & back camera are emulated
what do you think? attached is the code.
private CameraManager mManager;
private String[] mCameraIds;
mManager = (CameraManager)getSystemService(Context.CAMERA_SERVICE);
mCameraIds = mManager.getCameraIdList();
函数getCameraIdList仅适用于Android API版本21
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.