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

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

问题描述

我想在Android模拟器中使用网络摄像头模拟摄像头。基本上我只需要在模拟器中使用相机拍摄照片(不需要实时预览,即如果它更容易)

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)在当前的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).

任何有关如何在当前sdk(2.1或2.2)中执行此操作的帮助将非常感激。

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天全站免登陆