I have some codes of taking picture which works in Android 2.1 and 2.2. But these codes broke at Android 2.3. After spending time to fix this issue which went in vain, I wou
The problem lie in the fact that below codes are writen.
There is a PreviewCallback defined,
PreviewCallback mPreviewCallback = new PreviewCallback() {
@Override
public void onPreviewFrame(byte[] data, Camera camera) {
//Log.i(TAG+".mPreviewCallback.onPreviewFrame", "being called!");
}
};
mCamera.setPreviewCallback(mPreviewCallback);
That works in 2.1/2.2, but not in 2.3.
Not sure if Android team supported this way of using camera. If the above flow is expected, then Android team should fix this problem.