Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onCaptureCompleted being called BEFORE OnImageAvailable #11

Open
robbykim opened this issue Oct 19, 2017 · 1 comment
Open

onCaptureCompleted being called BEFORE OnImageAvailable #11

robbykim opened this issue Oct 19, 2017 · 1 comment

Comments

@robbykim
Copy link

Hi,

I'm using the code almost exactly as is and am having an asynchronous issue where the onCaptureCompleted is being called before the onImageAvailable callback. The problem here is that when onCaptureCompleted is being called, it shows the picturesTaken map as empty because the pictureUrl hasn't been set yet in the saveImageToDisk method in the onImageAvailable callback.

@hzitoun
Copy link
Owner

hzitoun commented Nov 9, 2017

Hum that is weird! Which API/Smartphone are you using? Do you systematically reproduce the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants