简体   繁体   中英

Camera in android emulator

I use android SDK 4.0.3 and eclipse Indigo and I'm trying to develop an application which uses a camera. When I take a photo, this message appears:

Unfortunately, camera has stopped.

In the eclipse console:

emulator: ERROR: _camera_client_query_frame: Unable to obtain first video frame from the camera '/dev/video0' in 2009 milliseconds: Resource temporarily unavailable.

My OS is Debian Squeeze. What can I do? Thanks.

在模拟器中相机无法正常工作。您必须在Real Device上尝试。

As Shahzad imam said, you can't use camera on emulator.

But if can't buy real device and you're really need camera you can try to translate video to network from your PC and then handle it in Android, as it a real camera. Or, if you just need photo, you can use some picture instead.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM