问题描述:

Am creating a camera application which need to auto capture the images when the camera is on with out any click, now I have called the camera using the Intent from my application,it's working but auto capturing of images is not implemented in that, I have searched every where could able to get the solution for it please do help me to resolve this issue thanks in advance

网友答案:

You have to use Surface View camera for auto capture image. You can follow this link

Just download and use this source code.

I think it will help you

Add this code:

final Handler handle = new Handler();
    final Runnable background = new Runnable() {

        @Override
        public void run() {
            // TODO Auto-generated method stub
            try {
                camera.takePicture(shutterCallback, rawCallback,
                        jpegCallback);

            } catch (Exception e) {

            }
        }
    };

    handle.postDelayed(background, 1000);

It will Auto capture after one second

相关阅读:
Top