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

Android: Camera Error - "Cant connect to camera" on second attempt #38

Open
ghost opened this issue Jun 24, 2015 · 1 comment
Open

Android: Camera Error - "Cant connect to camera" on second attempt #38

ghost opened this issue Jun 24, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 24, 2015

Hello

SDK Air17.0 @ Android Nexus 5 Android 5.1.1 SDK22

I've integrated this ANE just fine and it works except for the fact, that when I try to use it a second time, to add another Photo to my Dictionary, The Camera throws an Android OS Error:

Camera Error
Can't connect to Camera

What is the best practise on this ANE to activate the native ImagePicker and to stably disable it again, to make it available for a new photoshot? Is it adviced to reinit each time or is there a workflow example of keeping the camera available? Also, is there a log I could parse to see why this Error happens? I've read in some places that the Nexus Series is prone for this error and It might be my dev device after all. Maybe ImagePicker supplies a ErrorEvent dispatcher for that?

Cheers
Mortimer

@ghost
Copy link
Author

ghost commented Jun 25, 2015

To add to this Error: What Can I Do About The Can’t Connect To Camera Error On My Android

From what I'm reading there, the most common problem seems to be, that the camera is already used by another process. So it might be, that I use the ImagePicker wrong while loading it for the first image, but then on the second image, the camera is still "in use" somehow. Maybe there is a Detail I'm missing on how to accurately attach and detach the camera.

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

No branches or pull requests

0 participants