相机不上Android 2.2的工作 [英] Camera doesn't work on android 2.2

查看:166
本文介绍了相机不上Android 2.2的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android SDK和AVD管理,我创建了一个新的Andr​​oid虚拟设备如下:

In Android SDK and AVD Manager, I created a new android virtual device as following:

  • 名称:myavd
  • 目标:安卓2.2 - API级别8
  • SD卡:50MiB
  • 内建:默认(HVGA)
  • 硬件:抽象液晶密度160

启动该设备后,我不能从内置的相机拍摄照片。以下是错误和异常

After starting this device, I can't take a picture from build-in camera. The following is the error and exception.

应用程序摄像头(过程com.android.camera)已意外停止。请重试。

08-18 15:00:47.940:ERROR / AndroidRuntime(289):致命异常:GLThread 11   08-18 15:00:47.940:ERROR / AndroidRuntime(289):java.lang.IllegalArgumentException:如果没有的configs匹配configSpec   08-18 15:00:47.940:ERROR / AndroidRuntime(289):在android.opengl.GLSurfaceView $ BaseConfigChooser.chooseConfig(GLSurfaceView.java:760)   08-18 15:00:47.940:ERROR / AndroidRuntime(289):在android.opengl.GLSurfaceView $ EglHelper.start(GLSurfaceView.java:916)   08-18 15:00:47.940:ERROR / AndroidRuntime(289):在android.opengl.GLSurfaceView $ GLThread.guardedRun(GLSurfaceView.java:1246)   08-18 15:00:47.940:ERROR / AndroidRuntime(289):在android.opengl.GLSurfaceView $ GLThread.run(GLSurfaceView.java:1116)   08-18 15:00:48.369:WARN / ActivityManager(66):强制完成活动com.android.camera/.Camera

08-18 15:00:47.940: ERROR/AndroidRuntime(289): FATAL EXCEPTION: GLThread 11 08-18 15:00:47.940: ERROR/AndroidRuntime(289): java.lang.IllegalArgumentException: No configs match configSpec 08-18 15:00:47.940: ERROR/AndroidRuntime(289): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:760) 08-18 15:00:47.940: ERROR/AndroidRuntime(289): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:916) 08-18 15:00:47.940: ERROR/AndroidRuntime(289): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1246) 08-18 15:00:47.940: ERROR/AndroidRuntime(289): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116) 08-18 15:00:48.369: WARN/ActivityManager(66): Force finishing activity com.android.camera/.Camera

你知道什么是错?

推荐答案

看来,这是很正常的行为。检查这里
仿真器似乎不支持摄像头。以下是这些限制:

It seems that this is normal behaviour. check here.
The emulator does not seem to support camera. Here are these limitations :

仿真限制

在此版本中,模拟器的限制包括:

In this release, the limitations of the emulator include:

* No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.
* No support for USB connections
* No support for camera/video capture (input).
* No support for device-attached headphones
* No support for determining connected state
* No support for determining battery charge level and AC charging state
* No support for determining SD card insert/eject
* No support for Bluetooth

这篇关于相机不上Android 2.2的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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