how to get series of pictures?

Posted by rmaster on Stack Overflow See other posts from Stack Overflow or by rmaster
Published on 2010-05-25T20:56:56Z Indexed on 2010/05/25 21:01 UTC
Read the original article Hit count: 215

Filed under:
|
|

i have problems with this, recently i have also problem with just taking 1 photo... do you know how to solve it? any working code?

i'm doing it like that:

            mCamera = Camera.open();
    Log.e(TAG, "onCreate");
    mCamera.takePicture(null, mPictureCallback, mPictureCallback);

            Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() {
    public void onPictureTaken(byte[] imageData, Camera c) 
    {
        if (imageData != null) {
            //process photo
        }               
        }
};

in onDestroy() i release the camera

on simulator it works, on telephone - 1st time runs without problems but no picture, second and next times - 'force close' - looks like camera is not released ...

© Stack Overflow or respective owner

Related posts about android

Related posts about camera