How To Take Multiple Images Using Camera In Android
I need a camera that allows me take multiple pictures at once and then select one. Others may or may not be stored on the device. I've tried this. I can take multiple images but ho
Solution 1:
Try this
you can Call your second startActivityForResult()
from the onActivityResult()
you get from your first startActivityForResult()
.
like this by this code you can get 10 pic
publicint PIC_CODE=0;
protectedvoidonActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == CAMERA_REQUEST && resultCode == Activity.RESULT_OK) {
// get new image here like thisif(PIC_CODE<10){
// add new requset of picture like thisIntentcameraIntent=newIntent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, CAMERA_REQUEST);
PIC_CODE++;
}
}
Solution 2:
You have to implement your own camera to take multiple pictures. Create a class with surface view and implements SurfaceView.Callback
. Please check out my library which will implement the same.
Post a Comment for "How To Take Multiple Images Using Camera In Android"