Assumption: the camera preview is already running.

camera.setOneShotPreviewCallback(previewCallback);
        private final Camera.PreviewCallback previewCallback = new
Camera.PreviewCallback() {
                @Override
                public void onPreviewFrame(byte[] data, Camera camera) {
                        // do whatever you want to do with the preview byte[] 
(YUV format)
                }
        };

If you haven't managed to start the camera preview yet check out
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html

Cheers
Emanuel Moecklin
1gravity LLC

On Jun 20, 9:37 am, gaara <[email protected]> wrote:
> Hi group,
> how to get the Byte[] from the camera on Android, which method or
> which parameter can help me to do that;;
> Peace,
> Gaara

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

Reply via email to