在Android模拟器使用相机 [英] Using Camera in the Android emulator

查看:844
本文介绍了在Android模拟器使用相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用网络摄像头,模拟摄像头的Andr​​oid模拟器。基本上,我只需要使用相机拍摄的照片在模拟器(实况preVIEW不需要也就是说,如果它使任何容易)

I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if it makes it any easier)

我也跟着教程这里这是唯一一个我可以找到接近我的要求

I followed the tutorial here which is the only one I could find that was close to my requirements

但是很多该教程中(如android.hardware.CameraDevice)中使用的库不在present SDK提供和新库被替换(如android.hardware.camera)。

But many of the libraries used in that tutorial(like android.hardware.CameraDevice) are not available in present sdk and are replaced by new libraries(like android.hardware.camera).

这是如何做到这一点在present SDK(2.1或2.2)任何帮助将是非常美联社preciated。

Any help on how to do this in the present sdk(2.1 or 2.2) would be much appreciated.

推荐答案

更​​新:ICS仿真器支持摄像头

Update: ICS emulator supports camera.

这篇关于在Android模拟器使用相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆