开发者

how to get series of pictures?

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(byt开发者_如何学Pythone[] 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 ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜