Possible Duplicate:
Capture image with front camera without opening the camera application in android
my problem is I can do capturing only by using Intent to launch the camera and click the button to capture image. Is it possible to do it automatically by not clicking a button or what codes can I add to do this? thanks in advance.
You need to call this activity Also check below line of code
mCamera.takePicture(null, mPictureCallback, mPictureCallback);
It’s called twice
1) If you want user interaction to take picture you need to commit first occurrence
2) If you want no user interaction (It will take photo as soon as it start)
You can find whole project at
https://github.com/sandipmjadhav/CaptureImage
Thank You