android - Android Eclipse 模拟器上的相机 :

标签 android android-emulator android-camera

我的笔记本电脑盖上没有嵌入式摄像头。我会通过外部 USB 摄像头进行连接。

模拟器运行时可以选择它吗?我会在 AVD 皮肤的屏幕内实时显示图像吗?

最佳答案

在当前版本的模拟器(Ice Cream Sandwich,API14;Linux)中,网络相机支持可用。 Google 的文档和网络上提供的大多数答案尚未反射(reflect)这一点。模拟器本身会:

emulator -help
...
-fake-camera <mode>      set fake camera emulation mode
-webcam name=<name>[,dir=&lt;direction&gt;] setup web camera emulation
...
emulator -help-all

还有:

选项-fake_camera 的帮助

使用 -fake-camera 来控制模拟相机。 的有效值为:

off   -> disable fake camera emulation
back  -> fake camera is facing back
front -> fake camera is facing front

帮助选项-webcam

  • -webcam off 禁用网络摄像头模拟。
  • -webcam list 列出可用于模拟的网络摄像头。
  • -webcam name=[,dir=] 为网络摄像头仿真设置参数。

    • 独立于平台的名称,用于识别模拟相机设备。
    • 定义相机朝向的方向。有效值为:

      • front -> 将相机模拟为面向前方
      • back -> 将相机模拟为背面

        模拟网络摄像头的默认方向值为“正面”

关于android - Android Eclipse 模拟器上的相机 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3284583/

相关文章:

android - Unicode 符号 (25be) 未在三星迷你设备上显示

android - 将铃声导入模拟器(android studio)

android - 使用 houdini(Android 模拟器)在基于 x86 的 AVD 上运行 ARM 库

android - android 2.3.6 中的相机方向

java - 处理 XML 数据的特殊字符以在 Java 中解析

Android:Nav Drawer 后退按钮无法完成应用程序

android - 如果用户 5 分钟没有 Activity ,如何启动登录 Activity :

android - ionic 元素的绿色底部边框显示在 android 上,工作 iOS - Ionic

android - 相机结果始终返回 RESULT_CANCELED

android - Camera.startPreview() 问题