I have to develop an android app for which I have to use camera feature. Before developing the app I checked the default camera app of emulator and I found that it works in Android 2.1 but doesn't works in Android 2.2. Can anybody say why this happens? Is this the problem of some configuration while creating the AVD or some other problem?
Asked
Active
Viewed 364 times
2 Answers
0
This is known issue and discussed many times. You can look some of the posts.
In this release Android 2.2, there are some limitations of the emulator. "No support for camera/video capture (input)." is also one of them.
You can also look here for more details.
-
I have given you a link of the post where he has explained some solutions. But according to me the best way is to test camera app on device. – Sandy Feb 08 '12 at 07:01
-
sorry for my undoing my acceptance on your answer. Because camera also works in Android 2.2 – Chandra Sekhar Feb 11 '12 at 06:06
0
Finally I got the answer. There is nothing like camera feature at android 2.1 works fine but in android 2.2, it doesn't works fine. because after a long struggle I solved the problem just by releasing the camera properly and implement the code inside onSurfaceChanged method of the Preview class.
So now it works fine in all Android 2.1, 2.2 and also in 2.3

Chandra Sekhar
- 18,914
- 16
- 84
- 125