I want to take video and photo at same time.
I have two buttons.
1.when user click on one it have to take video and
2.another button then it have to stop recording video and take photo.
Now i am trying recorder and camera but its not working fine ,
also note not both in same time i want to do one after another vice versa ..
Can any one tell me a good idea for this.
Thanks.
Don't think it's possible. Camera and recorder will not work together because they both block camera and don't allow other apps' recorders and cameras (and each other) to use camera at the same time.
If your recording video then, you could when the button is pressed, calculate the frame of the video that corresponds to the time the button was pressed then just pull that frame out of the video file and use that as your image. I've never done it on android, but it should be possible.
EDIT: have a look at the previewcallback() in camera:
http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html