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?
Share
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