问题
I'm writing a simple android app for taking a photo from the camera. I'm following this tutorial photobasic. The program compile and run fine if i use the emulated camera on the android emulator. If i use the webcam0 device, my laptop webcam, i get this error:
ERROR: _camera_client_query_start: Cannot start camera 'AndroidEmulatorVC0' for NV21[640x480]: Result too large
I followed the solutions to this question webcam-in-android-emulator-cannot-start-camera-and-result-too-large without any luck.
Here is my emulator config.ini:
avd.ini.encoding=UTF-8
AvdId=Nexus_5_API_21
abi.type=x86
avd.ini.displayname=Nexus 5 API 21
disk.dataPartition.size=200M
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.camera.back=webcam0
hw.camera.front=none
hw.cpu.arch=x86
hw.dPad=no
hw.device.hash2=MD5:2fa0e16c8cceb7d385183284107c0c88
hw.device.manufacturer=Google
hw.device.name=Nexus 5
hw.gps=yes
hw.gpu.enabled=yes
hw.keyboard=yes
hw.lcd.density=480
hw.mainKeys=no
hw.ramSize=1536
hw.sdCard=yes
hw.sensors.orientation=yes
hw.sensors.proximity=yes
hw.trackBall=no
image.sysdir.1=system-images\android-21\google_apis\x86\
runtime.network.latency=none
runtime.network.speed=full
runtime.scalefactor=auto
sdcard.path=C:\Users\Francesco\.android\avd\Nexus_5_API_21.avd\sdcard.img
skin.dynamic=no
skin.name=nexus_5
skin.path=C:\Program Files\Android\Android Studio\plugins\android\lib\device-art-resources\nexus_5
snapshot.present=no
tag.display=Google APIs
tag.id=google_apis
vm.heapSize=256
Thanks in advice and sorry for my bad english
来源:https://stackoverflow.com/questions/27666333/error-camera-client-query-start-cannot-start-camera-androidemulatorvc0-for