Hi everyone, I went to stack overflow about this issue a few days ago 
(http://stackoverflow.com/questions/35180173/android-camera-taking-always-same-photo).
 
I haven't had any answer yet...

My problem is that I have an instance of android.hardware.Camera and I'm 
taking a photo like this:

    private void takePhoto() {
        try {
            mCamera.takePicture(null, null, new PhotoHandler());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    /**.___
     * Inner class to manage camera callbacks
     __.*/
    public class PhotoHandler implements Camera.PictureCallback {
        @Override
        public void onPictureTaken(byte[] data, Camera camera) {
            mCallbacks.onPhotoTaken(data);

            mCamera.stopPreview();
            mCamera.startPreview();
        }
    }

But I'm always getting the same image, I believe it has something to do 
with the data that I'm getting in the method onPictureTaken. When I stop at 
a breakpoint in onPictureTaken I see that data has always the same values. 
I'm working with min api 14 and target 23.

What am I doing wrong? Has someone encounter this kind of issue?

Thanks for the help. Jose

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e8f2853d-ce68-48d1-9acf-0114f8df2384%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to