Hi All, I use Android 2.3 on NeuseOne.
Now, I use setPreviewCallbackWithBuffer to get preview callback and it works well. But if I call takepicture, it will halt and I can not get jpegcallback. But if I use setPreviewCallback, all things works well. But as you know, its memroy is inefficient. I just want to know what is the special thing before I call takepicture when i use setPreviewCallbackWithBuffer . BTW, my set preview call back code is just below: Size size = p.getPreviewSize(); callbackBuffer1 = new byte[ size.width * size.height * 3 / 2 + 1]; callbackBuffer2 = new byte[size.width * size.height * 3 / 2 + 1]; ; mCamera.setPreviewCallbackWithBuffer(mPreviewCallback); // if I use mCamera.setPreviewCallback(mPreviewCallback); it works well mCamera.addCallbackBuffer(callbackBuffer1); mCamera.addCallbackBuffer(callbackBuffer2); Thanks, Ji -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

