kevalpatel2106 / android-hidden-camera

This library is to take picture using camera without camera preview.
Apache License 2.0
408 stars 155 forks source link

can not takepicture more than one time #13

Open grape1977 opened 7 years ago

grape1977 commented 7 years ago

if i want to take picture more times, it fails

grape1977 commented 7 years ago

oK, i resolve it ,u should mCamera.startPreview(); after take picture

kevalpatel2106 commented 7 years ago

@grape1977 Can you generate pull request for the fix?

luangs7 commented 7 years ago

Same issue, where should mCamera.startPreview(); be?

coolutkarshraj commented 7 years ago

I Want to Take Picture Multiple times But it can Take Only One One Photo And Save One Image

coolutkarshraj commented 7 years ago

Same issue, where should mCamera.startPreview(); be?

grape1977 commented 7 years ago

takePictureInternal function add startPreview

jonahhu95 commented 7 years ago

Hi, I'm still facing this issue is there a fix for it??

mikeallgyer commented 7 years ago

I'd love to get a fix for this as well :(

grape1977 commented 7 years ago

????,takePictureInternal->new Thread->Runnable, at the end,add one line: mCamera.startPreview();

androidnoob123 commented 6 years ago

How can we take multiple image with the help of the service? tried adding in the onImageCapture callback but it gives java.lang.RuntimeException: Camera is being used after Camera.release() was called error.