0

I am using camera2 api to capture images in my android application. When i am clicking on button to capture image it clicks multiple images on just one click. This issue happens only on few devices. Any suggestion to stop clicking multiple images on one click?

4
  • Your code seems ok! :D Commented Oct 2, 2018 at 9:53
  • 1
    Lol! You didn't get me :D. You have to paste code here :P Commented Oct 2, 2018 at 10:11
  • Try use this setRepeatingRequest(args) Commented Oct 2, 2018 at 10:15
  • have you found solution Commented Jul 15, 2019 at 7:06

1 Answer 1

0

I've the same problem.

I've added a boolean flag captureRequested which I set to true when I send a capture request, and false when I receive the image inside the onImageAvailableListener.

I'm sure it's not the best answer. If anyone has a better one...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.