相机不工作在Android 2.2 [英] Camera doesn't work on android 2.2
问题描述
在Android SDK和AVD Manager中,我创建了一个新的Android虚拟设备,如下所示:
- 名称:myavd
- 目标:Android 2.2 - API级别8。
- SD卡:50MiB。
- 内置:
启动此设备后,从内置相机拍摄照片。以下是错误和例外。
应用程序Camera(process com.android.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:没有配置匹配configSpec
08-18 15:00:47.940:ERROR / AndroidRuntime :at 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):at android.opengl.GLSurfaceView $ GLThread.run(GLSurfaceView.java:1116)
08-18 15:00:48.369:WARN / ActivityManager完成活动com.android.camera/Camera
你知道什么是错误吗?
这似乎是正常的行为。请在此处查看。
模拟器不似乎支持相机。以下是这些限制:
模拟器限制
在此版本中,模拟器的限制包括: p>
*不支持拨打或接听实际电话。但是,您可以通过仿真器控制台模拟电话(放置和接收)。
*不支持USB连接
*不支持摄像头/视频捕获(输入)。
*不支持连接耳机的耳机
*不支持确定连接状态
*不支持确定电池电量和交流充电状态
*不支持确定SD卡插入/弹出
*不支持蓝牙
In Android SDK and AVD Manager, I created a new android virtual device as following:
- Name: myavd
- Target: Android 2.2 - API Level 8.
- SD Card: 50MiB.
- Build-in: Default (HVGA).
- Hardware: Abstracted LCD density 160.
After starting this device, I can't take a picture from build-in camera. The following is the error and exception.
The application Camera (process com.android.camera) has stopped unexpectedly. Please try again.
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
Do you know what is wrong ?
It seems that this is normal behaviour. check here.
The emulator does not seem to support camera. Here are these limitations :
Emulator 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屋!