I have successfully captured the single photo using camera in Android. But when I tried to capture 5 photos at once, app stops responding, camera preview turns to green and
I'm not sure the android api even supports a burst mode. One thing's for sure, you can't just call takePicture()
in a loop like that. That is just abusing those poor api's.
How about taking the next picture in onPictureTaken() ? (Obviously you have to keep a track of the number of pictures taken etc ..)
Also like the documentation says, don't assume it will work on every device.
I wrote the above answer in 2011, since then Camera has evolved
EDIT : Burst mode is now supported in Camera2 : https://developer.android.com/reference/android/hardware/camera2/package-summary.html
See https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.html